Skip to content
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

Error handling event improvment #10

Open
adi130987 opened this issue Jan 25, 2017 · 1 comment
Open

Error handling event improvment #10

adi130987 opened this issue Jan 25, 2017 · 1 comment

Comments

@adi130987
Copy link
Collaborator

Improve error data object sent in fail custom event.
Right now, to access received errors in on-fail event handler, you have to use response.detail.request.detail.request.response.

Replaceing

          this.fire('fail', {
            request: event,
            error: error.error
          }, {bubbles: false});

with

          this.fire('fail', {
            request: event.detail.request,
            errors: event.detail.request.response
          }, {bubbles: false});

might be a more useful change.

@DonNicoJs
Copy link
Contributor

DonNicoJs commented Jan 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants