Skip to content

Change error handling #16

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

Merged
merged 2 commits into from
May 31, 2020
Merged

Change error handling #16

merged 2 commits into from
May 31, 2020

Conversation

davidanthoff
Copy link
Member

This changes how we handle errors.

The new story is: if a handler function wants to return a JSON RPC error response, it should not throw an error, but just return an instance of JSONRPCError.

That allows us to actually throw JSONRPCError if a request returns an error.

The current implementation hides error returns from the dreaded config requests, with this PR things should work better.

@davidanthoff davidanthoff added the bug Something isn't working label May 29, 2020
@davidanthoff davidanthoff self-assigned this May 29, 2020
@codecov
Copy link

codecov bot commented May 29, 2020

Codecov Report

Merging #16 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #16      +/-   ##
=========================================
- Coverage    0.75%   0.74%   -0.02%     
=========================================
  Files           4       4              
  Lines         132     134       +2     
=========================================
  Hits            1       1              
- Misses        131     133       +2     
Flag Coverage Δ
#unittests 0.74% <0.00%> (-0.02%) ⬇️
Impacted Files Coverage Δ
src/typed.jl 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d27015f...52d8cd9. Read the comment docs.

@davidanthoff davidanthoff merged commit 96bae89 into master May 31, 2020
@davidanthoff davidanthoff deleted the fix-typo branch May 31, 2020 21:24
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants