Skip to content

Commit

Permalink
Remove indentation from CLI exit message
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed May 20, 2018
1 parent c68d92e commit 0d6986c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const isCi = require('is-ci');
Promise.longStackTraces();

function exit(message) {
console.error(`\n ${require('./chalk').get().red(figures.cross)} ${message}`);
console.error(`\n${require('./chalk').get().red(figures.cross)} ${message}`);
process.exit(1); // eslint-disable-line unicorn/no-process-exit
}

Expand Down
2 changes: 1 addition & 1 deletion test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test('disallow invalid babel config shortcuts', t => {
execCli(['es2015.js'], {dirname: 'fixture/invalid-babel-config'}, (err, stdout, stderr) => {
t.ok(err);

let expectedOutput = '\n ';
let expectedOutput = '\n';
expectedOutput += figures.cross + ' Unexpected Babel configuration for AVA.';
expectedOutput += ' See https://github.com/avajs/ava/blob/master/docs/recipes/babel.md for allowed values.';
expectedOutput += '\n';
Expand Down

0 comments on commit 0d6986c

Please sign in to comment.