From 1808904d7557cc253695959771f41a2065216231 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Wed, 22 May 2024 14:52:16 -0600 Subject: [PATCH] fix error message --- x/marker/client/cli/cli_test.go | 2 +- x/marker/client/cli/tx.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/marker/client/cli/cli_test.go b/x/marker/client/cli/cli_test.go index f9d9e7d54..34db04c7e 100644 --- a/x/marker/client/cli/cli_test.go +++ b/x/marker/client/cli/cli_test.go @@ -2589,7 +2589,7 @@ func (s *IntegrationTestSuite) TestUpdateMarkerParamsCmd() { "[a-zA-Z][a-zA-Z0-9\\-\\.]{2,83}", "invalid", }, - expectErr: `invalid max supply: invalid :%!w()`, + expectErr: `invalid max supply: "invalid"`, }, } diff --git a/x/marker/client/cli/tx.go b/x/marker/client/cli/tx.go index 5db301003..f1ac48377 100644 --- a/x/marker/client/cli/tx.go +++ b/x/marker/client/cli/tx.go @@ -1580,7 +1580,7 @@ func GetUpdateMarkerParamsCmd() *cobra.Command { maxSupply, ok := sdkmath.NewIntFromString(args[2]) if !ok { - return fmt.Errorf("invalid max supply: %v :%w", args[2], err) + return fmt.Errorf("invalid max supply: %q", args[2]) } msg := types.NewMsgUpdateParamsRequest(