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

fix: catch exceptions in fallback functions #510

Merged
merged 1 commit into from Dec 7, 2020

Conversation

lance
Copy link
Member

@lance lance commented Dec 4, 2020

When a fallback function is called and throws an exception, the circuit
breaker should catch the exception and return a rejected Promise.

See: #509

Signed-off-by: Lance Ball lball@redhat.com

When a fallback function is called and throws an exception, the circuit
breaker should catch the exception and return a rejected Promise.

See: nodeshift#509

Signed-off-by: Lance Ball <lball@redhat.com>
@lance lance added the bug label Dec 4, 2020
@lance lance requested a review from a team December 4, 2020 20:06
Copy link
Member

@helio-frota helio-frota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@helio-frota helio-frota mentioned this pull request Dec 7, 2020
Copy link
Member

@lholmquist lholmquist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @lance thoughts on needing a major release for this? I don't think so, but i can see an argument for needing it. although, it is just fixing what should have been there

@lance
Copy link
Member Author

lance commented Dec 7, 2020

I think it's really more of a bug fix...

@lholmquist lholmquist merged commit 34f75a2 into nodeshift:master Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants