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 handling case when application code raises an error on command #4

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

Envek
Copy link
Member

@Envek Envek commented Aug 23, 2022

Fixes #3

Ensure that we correctly set status in metrics to ERROR and re-raise exception so AnyCable::Middlewares::Exceptions can handle it.

Thanks @zlenderja for pointing this out.

tomazzlender and others added 2 commits August 16, 2022 10:34
When a response yields an error, the value of the response variable is `nil` instead of `AnyCable::CommandResponse`.
@Envek Envek requested a review from palkan August 23, 2022 03:20
Copy link

@palkan palkan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@zlenderja
Copy link

Thanks for the fix 🌟

@palkan
Copy link

palkan commented Sep 20, 2022

@Envek Maybe, release?)

@Envek Envek merged commit 365695b into master Sep 21, 2022
@Envek
Copy link
Member Author

Envek commented Sep 21, 2022

Sorry, I'm a bit overwhelmed last months.

Released in 0.1.2.

@Envek Envek deleted the bugfix/error-handling branch September 21, 2022 07:02
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.

Error handling - undefined method 'status'
4 participants