Skip to content

Commit

Permalink
Better error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth authored and bestander committed Oct 18, 2016
1 parent 41e1d18 commit 553e55f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/yarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ if (semver.satisfies(ver, '>=5.0.0')) {
possibles.push('../updates/current/lib-legacy/cli/index.js');
possibles.push('../lib-legacy/cli/index.js');
} else {
throw new Error('Node version ' + ver + ' is not supported');
console.log(require('chalk').red('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.'));
process.exit(1);
}

var i = 0;
Expand Down

0 comments on commit 553e55f

Please sign in to comment.