bin: fix error handling.

This commit is contained in:
Christopher Jeffrey 2017-07-17 16:40:16 -07:00
parent 615adfd3ef
commit 76679a0650
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 4 additions and 2 deletions

View File

@ -50,5 +50,6 @@ process.on('unhandledRejection', (err, promise) => {
await node.connect();
node.startSync();
})().catch((err) => {
throw err;
console.error(err.stack);
process.exit(1);
});

View File

@ -48,5 +48,6 @@ process.on('unhandledRejection', (err, promise) => {
node.startSync();
})().catch((err) => {
throw err;
console.error(err.stack);
process.exit(1);
});