Skip to content

Commit 1e4207c

Browse files
committed
Fix error handling of concurrently
1 parent aa1aa18 commit 1e4207c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/webpack-test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,15 @@ const startSampleAndRun = async () => {
171171
// const exitCode = exitInfos?.exitCode ?? 1;
172172
// process.exit(exitCode);
173173
// }
174-
process.exit(0);
174+
const exitCode = exitInfos.exitCode;
175+
process.exit(exitCode);
175176
});
176177
};
177178

178179
(async () => {
179180
try {
180181
await startSampleAndRun();
181182
} catch (error) {
182-
if(error.signal === 'SIGTERM') {
183-
process.exit(0);
184-
}
185183
console.error(error);
186184
process.exit(1);
187185
}

0 commit comments

Comments
 (0)