Fall back to displaying full error if message is missing

This commit is contained in:
Dan Abramov
2016-07-20 13:38:29 +01:00
parent bfb6ed1500
commit 63610622a2

View File

@@ -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);
}