From 81860ab6529d45422a78251951b458289df9405c Mon Sep 17 00:00:00 2001 From: Steve Mao Date: Fri, 15 Jan 2016 00:24:58 +1100 Subject: [PATCH] fix(cli): print the stack if verbose --- cli.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index c7a1e4d92..a88d435eb 100755 --- a/cli.js +++ b/cli.js @@ -105,7 +105,11 @@ try { var changelogStream = conventionalChangelog(options, templateContext, gitRawCommitsOpts, parserOpts, writerOpts) .on('error', function(err) { - console.error(err.toString()); + if (flags.verbose) { + console.error(err.stack); + } else { + console.error(err.toString()); + } process.exit(1); });