build(aio): fail the doc-gen if the nav is invalid (#23175)

PR Close #23175
This commit is contained in:
Pete Bacon Darwin 2018-04-04 21:06:25 +01:00 committed by Alex Rickabaugh
parent f48e215305
commit 5b6e59cfb3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ module.exports = function processNavigationMap(versionInfo, log) {
log.error(`Navigation doc: ${navigationDoc.fileInfo.relativePath} contains invalid urls`);
// eslint-disable-next-line no-console
console.log(errors);
// TODO(petebd): fail if there are errors: throw new Error('processNavigationMap failed');
throw new Error('processNavigationMap failed');
}
// Add in the version data in a "secret" field to be extracted in the docs app