Skip to content

Commit

Permalink
[cli] Add newline before printed CLI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and saasen committed Feb 27, 2020
1 parent ef6c0ff commit abad5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/cli/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = async function runCli(cliRoot) {
cliRunner.runCommand(args.groupOrCommand, args, options).catch(err => {
const error = err.details || err
// eslint-disable-next-line no-console
console.error(error.stack ? neatStack(err) : error)
console.error(`\n${error.stack ? neatStack(err) : error}`)
// eslint-disable-next-line no-process-exit
process.exit(1)
})
Expand Down

0 comments on commit abad5d5

Please sign in to comment.