Skip to content

Commit

Permalink
Wrap tokenfactory error (#1634) (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 1, 2022
1 parent b3915fb commit 3a131a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/tokenfactory/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (server msgServer) Mint(goCtx context.Context, msg *types.MsgMint) (*types.
// pay some extra gas cost to give a better error here.
_, denomExists := server.bankKeeper.GetDenomMetaData(ctx, msg.Amount.Denom)
if !denomExists {
return nil, types.ErrDenomDoesNotExist
return nil, types.ErrDenomDoesNotExist.Wrapf("denom: %s", msg.Amount.Denom)
}

authorityMetadata, err := server.Keeper.GetAuthorityMetadata(ctx, msg.Amount.GetDenom())
Expand Down

0 comments on commit 3a131a0

Please sign in to comment.