Skip to content

Commit

Permalink
Documenting error (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Feb 25, 2019
1 parent b22083f commit 8ad1f7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion make/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ Module.byExport = {};
// Collect information
sources.forEach(source => {
let module = new Module(source);
module.analyze();
try {
module.analyze();
} catch (e) {
console.error(`An error occurred while processing ${source}`);
console.error(e);
process.exit(-1);
}
});

// Rebuild - if necessary
Expand Down

0 comments on commit 8ad1f7a

Please sign in to comment.