Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Escalate errors on RPC responses #18

Merged
merged 3 commits into from
Aug 20, 2019
Merged

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Aug 17, 2019

Errors on RPC responses are now detected in the next() and end() handlers and they are escalated as though end(response.error) was called.

Responses are also sanitized by deleting response.result if response.error is present, as mandated by the JSON RPC 2.0 spec.

Version bump: 5.1.2 -> 5.1.3

Fixes #11

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.

Setting the error object does not result in an error thrown / error in callback
2 participants