Skip to content
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

[Staking] Propagate actual system error while staking::bond #5627

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

Ank4n
Copy link
Contributor

@Ank4n Ank4n commented Sep 6, 2024

Trivial and self explanatory changes.

Wrapping err such as these makes debugging harder as well as does not really give any meaningful reason why this happened. The increment of consumer can genuinely fail if there are no providers (account does not exist) or it reaches max consumers. In both cases, its better to propagate the actual System err.

@Ank4n Ank4n requested a review from gpestana September 6, 2024 15:17
@Ank4n Ank4n added the R0-silent Changes should not be mentioned in any release notes label Sep 6, 2024
@Ank4n Ank4n changed the title do not wrap a system/account error into staking::bad_state [staking] Propagate actual system error while staking::bond Sep 6, 2024
@Ank4n Ank4n changed the title [staking] Propagate actual system error while staking::bond [Staking] Propagate actual system error while staking::bond Sep 6, 2024
@bkchr bkchr enabled auto-merge September 8, 2024 20:54
@bkchr
Copy link
Member

bkchr commented Sep 8, 2024

@Ank4n needs a prdoc file.

@gpestana gpestana added T2-pallets This PR/Issue is related to a particular pallet. and removed R0-silent Changes should not be mentioned in any release notes labels Sep 9, 2024
@Ank4n
Copy link
Contributor Author

Ank4n commented Sep 11, 2024

@Ank4n needs a prdoc file.

This can be silent right? Will put the right label.

@Ank4n Ank4n added the R0-silent Changes should not be mentioned in any release notes label Sep 11, 2024
@bkchr bkchr added this pull request to the merge queue Sep 11, 2024
Merged via the queue into master with commit 8f6699b Sep 11, 2024
235 of 238 checks passed
@bkchr bkchr deleted the staking/ankan-dont-wrap-provider-err branch September 11, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants