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: fix TypeError when handling external errors #22

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

nicokaiser
Copy link
Collaborator

When an error is handled which is not a FloraError, its properties are copied to the response object. This might be a problem, e.g. when there is a meta.headers property (which is protected in FloraErrors) and might cause a TypeError.

When an error is handled which is not a FloraError, its properties are
copied to the response object. This might be a problem, e.g. when there
is a meta.headers property (which is protected in FloraErrors) and might
cause a TypeError.
Copy link
Collaborator

@not-implemented not-implemented left a comment

Choose a reason for hiding this comment

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

Looks good :-)

@nicokaiser nicokaiser merged commit c49b67a into main Oct 31, 2023
@nicokaiser nicokaiser deleted the fix/error-meta branch October 31, 2023 14:33
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