Skip to content

Commit 0219141

Browse files
authored
Merge pull request #24 from bit-docs/23-warning-path
displays the path to the source file or displays "unknown" when current.src is undefined
2 parents e2357be + 7380794 commit 0219141

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: " + (current.src ? current.src.path : 'unknown') +
230230
(current.type ? '\n\t@' + current.type + " " + current.name : '') +
231231
"\n######################################################################## -->";
232232
},

0 commit comments

Comments
 (0)