fix: Exit with 1 if unexpected error happens

This commit is contained in:
Pierre-Denis Vanduynslager
2017-10-06 00:30:08 -04:00
committed by Pierre Vanduynslager
parent 85dd69b3a2
commit 90417c6ffe
2 changed files with 26 additions and 1 deletions
+3 -1
View File
@@ -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);
});