-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong usage of @defer.reject() #65
Comments
What form of rejection would be preferred? |
IMHO actual Maybe it's a good idea to reject with object, like this:
|
@bramski will it be useful if I write PR with this change? |
Yes for sure.
|
Here you are: |
Merged. |
Here we call
@defer.reject()
with two arguments:https://github.com/bramski/angular-indexedDB/blob/master/src/angular-indexed-db.coffee#L161-L171
The second argument of
reject
method is ignored, so actual error is lost and we just get "Transaction Error" string in promise.The text was updated successfully, but these errors were encountered: