Skip to content

Commit

Permalink
return a wrapped error regarding updating the AVS info when updating …
Browse files Browse the repository at this point in the history
…the dogfood parameter
  • Loading branch information
TimmyExogenous committed Sep 3, 2024
1 parent ddf8b5d commit c159ad3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/dogfood/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (k Keeper) UpdateParams(
Action: avskeeper.UpdateAction,
})
if err != nil {
return nil, err
return nil, errors.Wrap(types.ErrUpdateAVSInfo, err.Error())
}
return &types.MsgUpdateParamsResponse{}, nil
}
5 changes: 5 additions & 0 deletions x/dogfood/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ var ErrNotAVSByChainID = errorsmod.Register(
ModuleName, 3,
"AVS doesn't exist by chain ID",
)

var ErrUpdateAVSInfo = errorsmod.Register(
ModuleName, 4,
"failed to update AVS information",
)

0 comments on commit c159ad3

Please sign in to comment.