From 4394f4f4453251ef562be73a6588dba87efbfdf9 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 20 Apr 2020 20:26:06 +0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20hide=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index f7429db..700ec47 100755 --- a/cli.js +++ b/cli.js @@ -188,6 +188,6 @@ async function init() { } init().catch(error => { - ora.fail(error); + ora.fail((error && error.stack) || error); process.exit(1); });