Skip to content

Commit

Permalink
err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 6, 2024
1 parent 2a2fb19 commit 795e87d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func MsgCreate<%= TypeName.UpperCamel %>Factory(k keeper.Keeper) simsx.SimMsgFac
if err == nil && found {
reporter.Skip("<%= TypeName.UpperCamel %> already exist")
return nil, nil
} else if err != nil {
reporter.Skip(err.Error())
return nil, nil
}

return []simsx.SimAccount{from}, msg
Expand Down

0 comments on commit 795e87d

Please sign in to comment.