Skip to content

fix(error): properly forward the source error on error handler #139

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

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

acouvreur
Copy link
Contributor

The previous fix to handle panics introduced an error on the handleError which would forward the nil named error instead of the original one because they shared the same name.

This fixes that issue and the error is properly passed down.

Maybe a test should be created to cover that issue.

@acouvreur acouvreur requested a review from cbrgm as a code owner March 20, 2025 17:05
@cbrgm
Copy link
Owner

cbrgm commented Mar 21, 2025

LGTM, thanks!

@cbrgm cbrgm merged commit 50fb926 into cbrgm:main Mar 21, 2025
5 checks passed
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