Skip to content

Commit

Permalink
Fix color output for errors in the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick committed Jan 16, 2018
1 parent ce34877 commit bee0e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Expand Up @@ -13,9 +13,9 @@ var cliPkg = require('../package');

function exit(text) {
if (text instanceof Error) {
chalk.red(console.error(text.stack));
console.error(chalk.red(text.stack));
} else {
chalk.red(console.error(text));
console.error(chalk.red(text));
}
process.exit(1);
}
Expand Down

0 comments on commit bee0e1e

Please sign in to comment.