Skip to content

Commit 3e9d981

Browse files
committed
print fatal error details
1 parent 639a1ec commit 3e9d981

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ var compiler = webpack(options, function(err, stats) {
126126
}
127127
if(err) {
128128
console.error(err.stack || err);
129+
if(err.details) console.error(err.details);
129130
if(!options.watch) {
130131
process.on("exit", function() {
131132
process.exit(1);

lib/EntryModuleNotFoundError.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function EntryModuleNotFoundError(err) {
77
Error.captureStackTrace(this, EntryModuleNotFoundError);
88
this.name = "EntryModuleNotFoundError";
99
this.message = "Entry module not found: " + err;
10+
this.details = err.details;
1011
this.error = err;
1112
}
1213
module.exports = EntryModuleNotFoundError;

0 commit comments

Comments
 (0)