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: ensure that errors are JSON-serializable #162

Merged
merged 4 commits into from
May 27, 2024
Merged

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Oct 18, 2023

This PR adds a wrapper around the dispatch function to catch any errors, and only return their message to make sure they can be part of a JSON-RPC error response.

@danroc danroc requested a review from a team as a code owner October 18, 2023 15:52
@danroc danroc marked this pull request as draft October 23, 2023 08:38
@danroc danroc marked this pull request as ready for review May 23, 2024 12:52
@danroc danroc added this pull request to the merge queue May 27, 2024
Merged via the queue into main with commit 96e9798 May 27, 2024
16 checks passed
@danroc danroc deleted the feature/json-errors branch May 27, 2024 13:23
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