Skip to content

Commit

Permalink
prefixed error messages with "error:"
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpetersen authored and roman-vanesyan committed Oct 1, 2018
1 parent 6c0c1f6 commit 6aafa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
proc.on('close', process.exit.bind(process));
proc.on('error', function(err) {
if (err.code === 'ENOENT') {
console.error('%s(1) does not exist, try --help', bin);
console.error('error: %s(1) does not exist, try --help', bin);
} else if (err.code === 'EACCES') {
console.error('%s(1) not executable. try chmod or run with root', bin);
console.error('error: %s(1) not executable. try chmod or run with root', bin);
}
process.exit(1);
});
Expand Down

0 comments on commit 6aafa20

Please sign in to comment.