diff --git a/index.js b/index.js index 1b5fbeb7..570739f8 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,5 @@ const run = require('./runner'); -try { - run(); - process.exit(0); -} catch (_) { - process.exit(1); -} \ No newline at end of file +run() + .then(() => process.exit(0)) + .catch(() => process.exit(1)); \ No newline at end of file