Browse Source

now-alias: support `userError` errors

master
Guillermo Rauch 9 years ago
parent
commit
7feb738b33
  1. 6
      bin/now-alias

6
bin/now-alias

@ -83,7 +83,11 @@ if (argv.help || !subcommand) {
try {
await run(token);
} catch (err) {
error(`Unknown error: ${err.stack}`);
if (err.userError) {
error(err.message);
} else {
error(`Unknown error: ${err.stack}`);
}
exit(1);
}
})

Loading…
Cancel
Save