Skip to content

Commit 13581ee

Browse files
author
Steven Hargrove
committed
correct err logic
1 parent e6864e4 commit 13581ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Compilation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,15 +1071,15 @@ class Compilation {
10711071
context
10721072
},
10731073
err => {
1074-
if (this.bail) {
1074+
if (err && this.bail) {
10751075
callback(err);
10761076
this.buildQueue.stop();
10771077
this.rebuildQueue.stop();
10781078
this.processDependenciesQueue.stop();
10791079
this.factorizeQueue.stop();
1080-
return;
1080+
} else {
1081+
callback();
10811082
}
1082-
callback();
10831083
}
10841084
);
10851085
}

0 commit comments

Comments
 (0)