Skip to content

Commit

Permalink
Fixed exit-code error
Browse files Browse the repository at this point in the history
in catch, the exit code should be fixed to-1
  • Loading branch information
kerwin612 committed Jul 27, 2023
1 parent c4173a2 commit 283e901
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@ const main = async () => {

main().catch(err => {
console.error(err);
console.error(err.stack);
process.exit(err.code || -1);
process.exit(-1);
})

0 comments on commit 283e901

Please sign in to comment.