Skip to content

Commit

Permalink
Update mod.rs (paritytech#10277)
Browse files Browse the repository at this point in the history
As many people are unbonding, I've had to explain this to a handful of people recently. This improves the error message a bit and puts it in the error description, so that it is shown in the front page of all explorers if `unbond` fails, hopefully making it clear.
  • Loading branch information
kianenigma authored Nov 16, 2021
1 parent 9fec502 commit 9a00c43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frame/staking/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ pub mod pallet {
DuplicateIndex,
/// Slash record index out of bounds.
InvalidSlashIndex,
/// Can not bond with value less than minimum required.
/// Cannot have a validator or nominator role, with value less than the minimum defined by
/// governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
/// intention, `chill` first to remove one's role as validator/nominator.
InsufficientBond,
/// Can not schedule more unlock chunks.
NoMoreChunks,
Expand Down

0 comments on commit 9a00c43

Please sign in to comment.