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

Is there a chance to ignore error and reject reason separately? #102

Open
shijistar opened this issue Oct 17, 2017 · 1 comment
Open

Is there a chance to ignore error and reject reason separately? #102

shijistar opened this issue Oct 17, 2017 · 1 comment

Comments

@shijistar
Copy link

When a promise is failed, we call reject(reason). However then the two global error catchings are hit both. But I don't want log them twice. So I want to know is there a chance to ignore error and reason separately? Perhaps we need a hook called ignoreReason?

Ember.onerror = (error) => {
  if (this._ignoreError(error)) {
    return;
  }
}
RSVP.on('error', (reason, label) => {
  if (this._ignoreError(reason)) {
    return;
  }
}
@shijistar
Copy link
Author

#103

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

No branches or pull requests

1 participant