You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swallowed promise failure [Error: Test Error!]
Unhandled rejection reason: Error: Test Error!
at Object.<anonymous> (.../q-test.js:3:24)
at node.js:901:3
From previous event:
at Object.<anonymous> (.../q-test.js:6:3)
Since .fail() handles the rejection, there shouldn't be an unhandled rejection.
Removing .invoke() (or replacing it with the equivalent .then(function (o) { return o.someMethod(); })) fixes it.
The text was updated successfully, but these errors were encountered:
This prints
Since
.fail()
handles the rejection, there shouldn't be an unhandled rejection.Removing
.invoke()
(or replacing it with the equivalent.then(function (o) { return o.someMethod(); })
) fixes it.The text was updated successfully, but these errors were encountered: