Skip to content

Commit

Permalink
fixed bug where Parted middleware was not bubbling rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
nrstott committed Dec 23, 2011
1 parent 3cdee90 commit 1a46b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Expand Up @@ -143,7 +143,7 @@ exports.parted = exports.Parted = function(nextApp, opts) {
fn(req, null, function() {
Q.when(nextApp(req), function(resp) {
deferred.resolve(resp);
});
}, deferred.reject);
});

return deferred.promise;
Expand Down

0 comments on commit 1a46b5f

Please sign in to comment.