Skip to content
Snippets Groups Projects
Commit 256c35f4 authored by Kian Paimani's avatar Kian Paimani Committed by GitHub
Browse files

Update mod.rs (#10277)

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.
parent 2fa2e660
No related merge requests found
...@@ -608,7 +608,9 @@ pub mod pallet { ...@@ -608,7 +608,9 @@ pub mod pallet {
DuplicateIndex, DuplicateIndex,
/// Slash record index out of bounds. /// Slash record index out of bounds.
InvalidSlashIndex, 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, InsufficientBond,
/// Can not schedule more unlock chunks. /// Can not schedule more unlock chunks.
NoMoreChunks, NoMoreChunks,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment