Skip to content

Commit 6361062

Browse files
committed
Fall back to displaying full error if message is missing
1 parent bfb6ed1 commit 6361062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rimrafSync(relative + '/build');
2222
webpack(config).run(function(err, stats) {
2323
if (err) {
2424
console.error('Failed to create a production build. Reason:');
25-
console.error(err.message);
25+
console.error(err.message || err);
2626
process.exit(1);
2727
}
2828

0 commit comments

Comments
 (0)