mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 17:35:42 +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) {
|
webpack(config).run(function(err, stats) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Failed to create a production build. Reason:');
|
console.error('Failed to create a production build. Reason:');
|
||||||
console.error(err.message);
|
console.error(err.message || err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user