Skip to content

Commit

Permalink
Fix undefined message variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Dec 6, 2018
1 parent 6641169 commit 73fd35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const displayErrorReport = () => {
const isWarn = e.ok === 'warn';
const fx = isWarn ? 'warn' : 'error';
const c = isWarn ? chalk.yellow: chalk.red;
console[fx](c(message));
console[fx](c(e.message || e));
if (!isWarn) {
returnCode = ERROR_EXIT_CODE;
}
Expand Down

0 comments on commit 73fd35b

Please sign in to comment.