fix(api-builder/linkDocs): don't crash if a doc has no fileInfo (#2296)

Closes #2294
This commit is contained in:
Peter Bacon Darwin 2016-09-09 10:16:11 +01:00 committed by Tobias Bosch
parent 562e99463a
commit 672ba7f479
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ module.exports = function linkDocsInlineTagDef(parseArgString, createDocMessage,
var vers = _self.vers;
var prevUri = 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;