fix: Exit with 1 if unexpected error happens
This commit is contained in:
committed by
Pierre Vanduynslager
parent
85dd69b3a2
commit
90417c6ffe
@@ -23,4 +23,6 @@ npx is bundled with npm >= 5.4, or available via npm. More info: npm.im/npx`
|
||||
}
|
||||
|
||||
// node 8+ from this point on
|
||||
require('../src')();
|
||||
require('../src')().catch(() => {
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user