Skip to content

Commit

Permalink
change add validator balance error message (#2385)
Browse files Browse the repository at this point in the history
* change add validator balance error message

* change err msg
  • Loading branch information
sukantoraymond authored Dec 3, 2024
1 parent 9ad90b8 commit b3a056c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/prompts/validations.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func validateValidatorBalanceFunc(availableBalance uint64) func(string) error {
return fmt.Errorf("subnet validator balance must be at least 1 AVAX")
}
if val > availableBalance {
return fmt.Errorf("balance should be less than %d AVAX", availableBalance)
return fmt.Errorf("current balance of %d is not sufficient for subnet validator balance to be %d AVAX", availableBalance, val)
}
return nil
}
Expand Down

0 comments on commit b3a056c

Please sign in to comment.