Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit e9ca87d

Browse files
committed
fix(Sparky): Exit code should equal to 1 in case of an error
related #828
1 parent 2492f12 commit e9ca87d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sparky/Sparky.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ export class Sparky {
3939
if (this.launch === false && this.testMode === false) {
4040
this.launch = true;
4141
process.nextTick(async () => {
42-
await this.start();
42+
try {
43+
await this.start();
44+
} catch (e) {
45+
console.error(e);
46+
process.exit(1);
47+
}
4348
});
4449
}
4550
return {

0 commit comments

Comments
 (0)