bin: fix error handling.
This commit is contained in:
parent
615adfd3ef
commit
76679a0650
3
bin/node
3
bin/node
@ -50,5 +50,6 @@ process.on('unhandledRejection', (err, promise) => {
|
|||||||
await node.connect();
|
await node.connect();
|
||||||
node.startSync();
|
node.startSync();
|
||||||
})().catch((err) => {
|
})().catch((err) => {
|
||||||
throw err;
|
console.error(err.stack);
|
||||||
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -48,5 +48,6 @@ process.on('unhandledRejection', (err, promise) => {
|
|||||||
|
|
||||||
node.startSync();
|
node.startSync();
|
||||||
})().catch((err) => {
|
})().catch((err) => {
|
||||||
throw err;
|
console.error(err.stack);
|
||||||
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user