mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-14 12:08:58 +08:00
Fall back to displaying full error if message is missing
This commit is contained in:
@@ -22,7 +22,7 @@ rimrafSync(relative + '/build');
|
||||
webpack(config).run(function(err, stats) {
|
||||
if (err) {
|
||||
console.error('Failed to create a production build. Reason:');
|
||||
console.error(err.message);
|
||||
console.error(err.message || err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user