Skip to content

Commit

Permalink
[api] [fix] Ensure error is passed to client #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Dec 3, 2017
1 parent 3ccb6a6 commit cddec3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hook/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ module['exports'] = function Deploy (opts, cb) {
} catch (err){
e = err;
}
if (e) {
return cb(e);
}
pkg.owner = config.user;
self.get({ name: pkg.name, owner: config.user }, function (err, _hook) {
if (err) {
Expand Down

0 comments on commit cddec3c

Please sign in to comment.