Skip to content

Commit

Permalink
fix: Write errors to stderr (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten1337 authored Apr 8, 2021
1 parent 5505e6c commit 39b428f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function Cli(args) {
console.log(output);
})
.catch(err => {
console.log('An error occured:');
console.log(err);
console.error('An error occured:');
console.error(err);
process.exit(-1);
});
}
Expand Down

0 comments on commit 39b428f

Please sign in to comment.