Skip to content
Permalink
Browse files

[fix] check for trailers to properly return an error and not continue…

… deploy procedure
  • Loading branch information...
jcrugzz committed Mar 6, 2014
1 parent e8c400e commit 7d51442dc0343327b7940c88c130440ae5b5f9cb
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/jitsu/package.js
@@ -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);
})

0 comments on commit 7d51442

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