Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Staking] Propagate actual system error while staking::bond (#5627)
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.
- Loading branch information