Skip to content
Myr

prefixed error messages with "error:"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jared Petersen · committed by Roman Vanesyan · parent 6c0c1f6 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:index.js+2 added-2 removed
578 unmodified lines
579 });580 proc.on('close', process.exit.bind(process));581 proc.on('error', function(err) {582 if (err.code === 'ENOENT') {583 console.error('%s(1) does not exist, try --help', bin);583 console.error('error: %s(1) does not exist, try --help', bin);584 } else if (err.code === 'EACCES') {585 console.error('%s(1) not executable. try chmod or run with root', bin);585 console.error('error: %s(1) not executable. try chmod or run with root', bin);586 }587 process.exit(1);588 });589
638 unmodified lines