diff --git a/bin/dato.js b/bin/dato.js index 8846efad..2a68b934 100755 --- a/bin/dato.js +++ b/bin/dato.js @@ -3,4 +3,8 @@ require('../lib'); const runCli = require('../lib/cli'); -runCli(); +runCli().catch(e => { + process.stdout.write(`Command failed with the following error:\n`); + process.stdout.write(`${e.message}\n`); + process.exit(1); +});