Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 18, 2023
1 parent f4f5c89 commit 7c074ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ func EndBlocker(ctx sdk.Context, keeper *keeper.Keeper) error {
// executes handle(msg) and recovers from panic.
func safeExecuteHandler(ctx sdk.Context, msg sdk.Msg, handler baseapp.MsgServiceHandler,
) (res *sdk.Result, err error) {

defer func() {
if r := recover(); r != nil {
err = fmt.Errorf("handling x/gov proposal msg [%s] PANICED: %v", msg, r)
err = fmt.Errorf("handling x/gov proposal msg [%s] PANICKED: %v", msg, r)
}
}()
res, err = handler(ctx, msg)
Expand Down

0 comments on commit 7c074ba

Please sign in to comment.