Skip to content
Permalink
Browse files

[fix] Add correct header name, fixes #499

  • Loading branch information...
julianduque committed May 20, 2014
1 parent 0d3811b commit 5266f9422a675fd2b8090039ef9907f94adbf184
Showing with 4 additions and 5 deletions.
  1. +0 −1 lib/jitsu.js
  2. +4 −4 lib/jitsu/package.js
@@ -372,7 +372,6 @@ jitsu.showError = function (command, err, shallow, skip) {
}
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);
}
@@ -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 ) {

0 comments on commit 5266f94

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