Skip to content

Commit

Permalink
Log error in check-lib-requires when it's unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Mar 9, 2016
1 parent 3c3b9d0 commit f0243de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/node/check-lib-requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ fs.readdir(pathToLib, (err, files) => {
if (e.code === 'MODULE_NOT_FOUND') {
const missingModule = e.toString().match(EXTRACT_MODULE_NAME_REGEX)[1];
console.error(moduleName, 'is missing a dependency:', missingModule);
} else {
console.error('UNKNOWN ERROR', e)
}
didError = true;
}
Expand Down

0 comments on commit f0243de

Please sign in to comment.