Make scripts terminate with a non-zero error code upon failure.
This commit is contained in:
@@ -3,6 +3,8 @@ const fs = require('fs');
|
||||
const program = require('commander');
|
||||
const uhk = require('./uhk');
|
||||
|
||||
process.on('unhandledRejection', e => {throw e});
|
||||
|
||||
(async function() {
|
||||
program
|
||||
.usage(`configPath`)
|
||||
|
||||
Reference in New Issue
Block a user