Skip to content
Permalink
Browse files

[minor] Make the error message for "no matching engines found" more h…

…uman-readable/helpful
  • Loading branch information...
jfhbrook committed Jul 13, 2012
1 parent 942689c commit eff03064c64b30d8d9f2df362d6cc549e29db4d1
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/haibu/core/spawner.js
@@ -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.6.x`.'
].join('\n'));
err.blame = {
type: 'user',
message: 'Repository configuration'

0 comments on commit eff0306

Please sign in to comment.
You can’t perform that action at this time.