Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #500 from nodejitsu/gh499
[fix] Add correct header name, fixes #499
  • Loading branch information
jcrugzz committed May 20, 2014
2 parents 0d3811b + 7f0894f commit b72b55e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/jitsu.js
Expand Up @@ -369,10 +369,6 @@ jitsu.showError = function (command, err, shallow, skip) {
if (~err.result.error.indexOf('matching versions')) {
jitsu.log.error(err.result.error);
jitsu.log.error("Do not use a specific engine version, try a generic one (eg: 0.8.x or 0.10.x)");
}
else if (~err.result.error.indexOf('npm exited')) {
jitsu.log.error(err.result.error);
jitsu.log.error("npm installation failed, please double check your package.json dependencies");
} else {
jitsu.log.error(err.result.error);
}
Expand Down
8 changes: 4 additions & 4 deletions lib/jitsu/package.js
Expand Up @@ -435,14 +435,14 @@ package.updateTarball = function (version, pkg, existing, firstSnapshot, callbac
}
res.pipe(process.stdout);
res.on('end', function () {
if (res.trailers['x-build-failure']) {
var error = new Error('Nodejitsu Error: Build Failure, Check your dependencies');
error.result = { error: res.trailers['x-npm-failure'].toString() };
if (res.trailers && res.trailers['x-build-failure']) {
var error = new Error('Nodejitsu Error: Build Failure, please check the build failure above');
error.result = { error: res.trailers['x-build-failure'].toString() };
return callback(error);
}
jitsu.log.silly('Done creating snapshot ' + version.magenta);
callback(null, version, pkg);
})
});
});

if (emitter && !jitsu.config.get('raw') && process.stdout.isTTY ) {
Expand Down

0 comments on commit b72b55e

Please sign in to comment.