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

contracts: Get rid of the dreaded Other error #10595

Merged
merged 6 commits into from
Jan 17, 2022

Conversation

athei
Copy link
Member

@athei athei commented Jan 5, 2022

This replaces the dreaded Other error by a CodeRejected error. This is the last occurrence of an error that isn't translated into a module specific error. It also prints a more detailed information on why it was rejected to the debug buffer (if only someone would inspect this buffer) and to the node console.

@athei athei 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. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels Jan 5, 2022
@athei athei requested review from ascjones, cmichi and HCastano January 5, 2022 18:49
frame/contracts/src/lib.rs Outdated Show resolved Hide resolved
frame/contracts/src/lib.rs Outdated Show resolved Hide resolved
frame/contracts/src/lib.rs Outdated Show resolved Hide resolved
frame/contracts/src/tests.rs Show resolved Hide resolved
@athei
Copy link
Member Author

athei commented Jan 17, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 02bdc57 into master Jan 17, 2022
@paritytech-processbot paritytech-processbot bot deleted the at-improve-debug-output branch January 17, 2022 09:45
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Print more detailed error when instrumentation fails

* Apply suggestions from code review

Co-authored-by: Hernando Castano <[email protected]>

* Check contents of debug buffer

* Fix test

Co-authored-by: Hernando Castano <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Print more detailed error when instrumentation fails

* Apply suggestions from code review

Co-authored-by: Hernando Castano <[email protected]>

* Check contents of debug buffer

* Fix test

Co-authored-by: Hernando Castano <[email protected]>
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. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants