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

Handle uncaught unrecoverable_error #609

Merged
merged 1 commit into from
Sep 14, 2016
Merged

Handle uncaught unrecoverable_error #609

merged 1 commit into from
Sep 14, 2016

Conversation

eddiezane
Copy link
Contributor

Since the emitEventFn inherits from EventEmitter and custom errors are being emitted, the default error event will not be triggered.

This change checks if an unrecoverable_error is being emitted and throws it if there are no attached listeners.

An unrecoverable_error can be triggered for testing by turning off all Client Connections and trying to create an instance of Lock.

@hzalaz hzalaz merged commit 0149fe9 into auth0:master Sep 14, 2016
@hzalaz hzalaz modified the milestone: v10.3.0 Sep 19, 2016
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

Successfully merging this pull request may close these issues.

2 participants