Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[minor] Make the error message for "no matching engines found" more h…
…uman-readable/helpful
  • Loading branch information
jfhbrook committed Sep 29, 2012
1 parent 03558a1 commit ff9b3de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/haibu/core/spawner.js
Expand Up @@ -32,7 +32,12 @@ haibu.getSpawnOptions = function getSpawnOptions (app) {
}
version = semver.maxSatisfying(nodeVersions, engine);
if (!version) {
var err = new Error('Error spawning drone: no matching engine found');
var err = new Error([
'Haibu could not find a node.js version satisfying specified',
'node.js engine `' + String(engine) + '`. Try specifying a different '
+ 'version of node.js',
'in your package.json, such as `0.8.x`.'
].join('\n'));
err.blame = {
type: 'user',
message: 'Repository configuration'
Expand Down

0 comments on commit ff9b3de

Please sign in to comment.