From b8848a46e2df42be7883cc424cbfd340998c8e16 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sun, 4 Feb 2018 23:05:21 -0800 Subject: [PATCH] fix: add catch handler --- templates/bin/run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/bin/run b/templates/bin/run index ac4d489..486b605 100755 --- a/templates/bin/run +++ b/templates/bin/run @@ -1,3 +1,7 @@ #!/usr/bin/env node require('@anycli/command').run() +.catch(err => { + console.error(err.stack) + process.exitCode = 1 +})