Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants