You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when we return the errors from the ValidateBasic or Validate methods, we have some conflicts in the formatting of the strings: some of them are capitalized while others are not. Also, sometimes we return sdkerrors.Wrap while some others we return fmt.ErrorF.
Proposal
I propose to unify the returned errors, registering custom errors where needed (using sdkerrors.Register), returning always sdkerrors.Wrap and de-capitalizing all the error strings, as suggested in the official Go documentation.
The text was updated successfully, but these errors were encountered:
Context
Currently when we return the errors from the
ValidateBasic
orValidate
methods, we have some conflicts in the formatting of the strings: some of them are capitalized while others are not. Also, sometimes we returnsdkerrors.Wrap
while some others we returnfmt.ErrorF
.Proposal
I propose to unify the returned errors, registering custom errors where needed (using
sdkerrors.Register
), returning alwayssdkerrors.Wrap
and de-capitalizing all the error strings, as suggested in the official Go documentation.The text was updated successfully, but these errors were encountered: