Skip to content

Commit

Permalink
fix: add catch handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 5, 2018
1 parent 4fd2c97 commit b8848a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/bin/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env node

require('@anycli/command').run()
.catch(err => {
console.error(err.stack)
process.exitCode = 1
})

0 comments on commit b8848a4

Please sign in to comment.