Skip to content

Commit

Permalink
fix(cli): print the stack if verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Jan 28, 2016
1 parent 42cf978 commit 81860ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli.js
Expand Up @@ -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);
});

Expand Down

0 comments on commit 81860ab

Please sign in to comment.