Browse files

fixed bug where Parted middleware was not bubbling rejection

  • Loading branch information...
1 parent 3cdee90 commit 1a46b5fd33bbeb9a9e438c485401b15893c15b37 @nrstott committed Dec 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware.js
View
2 lib/middleware.js
@@ -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;

0 comments on commit 1a46b5f

Please sign in to comment.