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

Return errors from eth_call RPC #2498

Merged
merged 2 commits into from
Oct 9, 2016
Merged

Return errors from eth_call RPC #2498

merged 2 commits into from
Oct 9, 2016

Conversation

keorn
Copy link

@keorn keorn commented Oct 6, 2016

Closes #2320

@keorn keorn added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 6, 2016
pub fn from_call_error(error: CallError) -> Error {
match error {
CallError::StatePruned => state_pruned(),
CallError::Execution(e) => internal("Execution error {}: ", e),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be an internal error - it's ok if the call has failed.
I would add a separate code for this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, ok

@tomusdrw tomusdrw added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 6, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 86.394% when pulling 1bfac8a on ethcall-errors into 6c1b2fb on master.

@keorn keorn added A0-pleasereview 🤓 Pull request needs code review. and removed A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. labels Oct 6, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 86.383% when pulling 32b6288 on ethcall-errors into 6c1b2fb on master.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 8, 2016
@gavofyork gavofyork merged commit 271bcf4 into master Oct 9, 2016
@gavofyork gavofyork deleted the ethcall-errors branch October 9, 2016 09:45
jacogr added a commit that referenced this pull request Oct 9, 2016
* master:
  Return errors from eth_call RPC (#2498)
jacogr added a commit that referenced this pull request Oct 9, 2016
* js:
  Return errors from eth_call RPC (#2498)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants