Permalink
Browse files

reject returns promise not the deferred

  • Loading branch information...
1 parent 3177c24 commit 0fbb308a7bbd03b1bf735ec504550fe02a9c34b9 @nrstott committed Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bogart.js
View
@@ -21,7 +21,7 @@ if (!Q.reject) {
deferred.reject(err);
- return deferred;
+ return deferred.promise;
};
}

0 comments on commit 0fbb308

Please sign in to comment.