fix(api-builder/linkDocs): don't crash if a doc has no fileInfo (#2296)
Closes #2294
This commit is contained in:
parent
562e99463a
commit
672ba7f479
|
@ -45,7 +45,8 @@ module.exports = function linkDocsInlineTagDef(parseArgString, createDocMessage,
|
||||||
var vers = _self.vers;
|
var vers = _self.vers;
|
||||||
var prevUri = uri;
|
var prevUri = uri;
|
||||||
uri = path.join(lang, vers, uri);
|
uri = path.join(lang, vers, uri);
|
||||||
log.info('Ajusted linkDocs chapter-relative uri (' + doc.fileInfo.baseName + '): ' + prevUri + ' -> ' + uri);
|
var fileName = doc.fileInfo ? (' (' + doc.fileInfo.baseName + ')') : '';
|
||||||
|
log.info('Ajusted linkDocs chapter-relative uri' + fileName + ': ' + prevUri + ' -> ' + uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
var isValid = false;
|
var isValid = false;
|
||||||
|
|
Loading…
Reference in New Issue