From 17629f1f15d1073418ef1f56363ed13c32d25d56 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 12 Oct 2018 12:13:49 +0300 Subject: [PATCH] feature(cloudcmd) add unhandledRejection listener --- bin/cloudcmd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 9f768b2a..a03fc557 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -22,6 +22,8 @@ const choose = (a, b) => { return a; }; +process.on('unhandledRejection', exit); + const argv = process.argv; const args = require('minimist')(argv.slice(2), { string: [