Skip to content

Commit e52154f

Browse files
authored
Merge pull request webpack#3766 from also/error-on-rejected-promise
Exit with error when config promise is rejected
2 parents a133c90 + 095e280 commit e52154f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function processOptions(options) {
166166
if(typeof options.then === "function") {
167167
options.then(processOptions).catch(function(err) {
168168
console.error(err.stack || err);
169-
process.exit(); // eslint-disable-line
169+
process.exit(1); // eslint-disable-line
170170
});
171171
return;
172172
}

0 commit comments

Comments
 (0)