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

fix: ensure that errors are JSON-serializable#162

Merged
danroc merged 4 commits intomainfrom
feature/json-errors
May 27, 2024
Merged

fix: ensure that errors are JSON-serializable#162
danroc merged 4 commits intomainfrom
feature/json-errors

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 force-pushed the feature/json-errors branch from e3b080b to 87e138d Compare October 23, 2023 08:38
@danroc danroc force-pushed the feature/json-errors branch from 87e138d to abbfa87 Compare May 23, 2024 12:21
@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
@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