Skip to content

Commit

Permalink
[fix] check for trailers to properly return an error and not continue…
Browse files Browse the repository at this point in the history
… deploy procedure
  • Loading branch information
jcrugzz committed Mar 6, 2014
1 parent e8c400e commit 7d51442
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/jitsu/package.js
Expand Up @@ -435,6 +435,9 @@ package.updateTarball = function (version, pkg, existing, firstSnapshot, callbac
}
res.pipe(process.stdout);
res.on('end', function () {
if (res.trailers['x-build-failure']) {
return callback(new Error(res.trailers['x-build-failure']));
}
jitsu.log.silly('Done creating snapshot ' + version.magenta);
callback(null, version, pkg);
})
Expand Down

0 comments on commit 7d51442

Please sign in to comment.