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

Preserve custom err.status from ok callback #1608

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

jeremyruppel
Copy link
Contributor

Currently if you throw an error in a custom .ok callback, and that error has a .status property, it will be accessible in the node client but is overwritten by the response status in the browser client. This patch also adds the .status property to the error caught from the .ok callback if it didn't have one.

@niftylettuce
Copy link
Collaborator

Can you resolve these conflicts? Would merge once done

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.

3 participants