Skip to content

Commit

Permalink
Fixed missing conversion from reason to error
Browse files Browse the repository at this point in the history
All reasons are now exceptions.
  • Loading branch information
kriskowal committed Apr 30, 2012
1 parent ec1edcd commit 6be15b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion q.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ exports.makePromise = makePromise;
function makePromise(descriptor, fallback, valueOf, rejected) {
if (fallback === void 0) {
fallback = function (op) {
return reject("Promise does not support operation: " + op);
return reject(new Error("Promise does not support operation: " + op));
};
}

Expand Down

0 comments on commit 6be15b9

Please sign in to comment.