Skip to content

Commit 9263a3a

Browse files
committed
Existence check in string output
1 parent 3221933 commit 9263a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/make_default_helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ module.exports = function(docMap, config, getCurrent, Handlebars){
226226
return "<!--####################################################################\n" +
227227
"\tTHIS IS A GENERATED FILE -- ANY CHANGES MADE WILL BE OVERWRITTEN\n\n" +
228228
'\tINSTEAD CHANGE:\n' +
229-
"\tsource: " + current.src +
229+
"\tsource: " + ('src' in current && 'path' in current.src ? current.src.path : '') +
230230
(current.type ? '\n\t@' + current.type + " " + current.name : '') +
231231
"\n######################################################################## -->";
232232
},

0 commit comments

Comments
 (0)