Skip to content

Commit

Permalink
Update x/ccv/provider/types/msg.go
Browse files Browse the repository at this point in the history
Co-authored-by: bernd-m <[email protected]>
  • Loading branch information
insumity and bermuell authored Aug 22, 2024
1 parent 4744bdc commit 715bbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ func ValidateInitializationParameters(initializationParameters ConsumerInitializ
}

if err := ccvtypes.ValidateDuration(initializationParameters.UnbondingPeriod); err != nil {
return errorsmod.Wrap(ErrInvalidConsumerInitializationParameters, "unbonding period cannot be zero")
return errorsmod.Wrapf(ErrInvalidConsumerInitializationParameters, "invalid unbonding period: %s", err.Error())
}

return nil
Expand Down

0 comments on commit 715bbbc

Please sign in to comment.