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

Simplify runtime api error handling#8114

Merged
7 commits merged intomasterfrom
bkchr-sp-api-error
Feb 15, 2021
Merged

Simplify runtime api error handling#8114
7 commits merged intomasterfrom
bkchr-sp-api-error

Conversation

@bkchr
Copy link
Copy Markdown
Member

@bkchr bkchr commented Feb 13, 2021

This pr simplifies the runtime api error handling by introducing an error type for the runtime api.

polkadot companion: paritytech/polkadot#2437

@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Feb 13, 2021
@bkchr bkchr requested review from drahnr and ordian February 13, 2021 14:51
Copy link
Copy Markdown

@ordian ordian left a comment

Choose a reason for hiding this comment

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

I don't fully understand the UnwindSafe bounds and UI tests removal reasoning, but the change from String to proper error type looks good.

inherent_data
))
})
}).map_err(|e| Error::Application(Box::new(e)))
Copy link
Copy Markdown
Contributor

@drahnr drahnr Feb 14, 2021

Choose a reason for hiding this comment

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

Nit: I would prefer adding another error variant, so ::Application can cease to exist eventually, and be replaced with more detailed variants.

Copy link
Copy Markdown
Contributor

@drahnr drahnr left a comment

Choose a reason for hiding this comment

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

This looks very good!

bkchr added a commit to paritytech/polkadot that referenced this pull request Feb 14, 2021
@bkchr
Copy link
Copy Markdown
Member Author

bkchr commented Feb 15, 2021

bot merge

@ghost
Copy link
Copy Markdown

ghost commented Feb 15, 2021

Trying merge.

@ghost ghost merged commit 13b6998 into master Feb 15, 2021
@ghost ghost deleted the bkchr-sp-api-error branch February 15, 2021 11:55
athei pushed a commit that referenced this pull request Feb 15, 2021
* Ahh

* Work work work

* Fix all the compilation errors

* Fix test

* More fixes...
bkchr added a commit to paritytech/polkadot that referenced this pull request Feb 15, 2021
* Polkadot companion for 8114

paritytech/substrate#8114

* "Update Substrate"

Co-authored-by: parity-processbot <>
KalitaAlexey pushed a commit to KalitaAlexey/substrate that referenced this pull request Jul 9, 2021
* Ahh

* Work work work

* Fix all the compilation errors

* Fix test

* More fixes...
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants