Skip to content

Commit dd9c385

Browse files
authored
Merge pull request #721 from cosmos/colin/694-fix-err-msg
simplify connection handshake error messages
1 parent 0a7ad9b commit dd9c385

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5353

5454
### Improvements
5555

56+
* (connection) [\#721](https://github.com/cosmos/ibc-go/pull/721) Simplify connection handshake error messages when unpacking client state.
5657
* (channel) [\#692](https://github.com/cosmos/ibc-go/pull/692) Minimize channel logging by only emitting the packet sequence, source port/channel, destination port/channel upon packet receives, acknowledgements and timeouts.
5758
* [\#383](https://github.com/cosmos/ibc-go/pull/383) Adds helper functions for merging and splitting middleware versions from the underlying app version.
5859
* (modules/core/05-port) [\#288](https://github.com/cosmos/ibc-go/issues/288) Making the 05-port keeper function IsBound public. The IsBound function checks if the provided portID is already binded to a module.

modules/core/keeper/msg_server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (k Keeper) ConnectionOpenTry(goCtx context.Context, msg *connectiontypes.Ms
161161

162162
targetClient, err := clienttypes.UnpackClientState(msg.ClientState)
163163
if err != nil {
164-
return nil, sdkerrors.Wrapf(err, "client in msg is not exported.ClientState. invalid client: %v.", targetClient)
164+
return nil, err
165165
}
166166

167167
connectionID, err := k.ConnectionKeeper.ConnOpenTry(
@@ -195,7 +195,7 @@ func (k Keeper) ConnectionOpenAck(goCtx context.Context, msg *connectiontypes.Ms
195195
ctx := sdk.UnwrapSDKContext(goCtx)
196196
targetClient, err := clienttypes.UnpackClientState(msg.ClientState)
197197
if err != nil {
198-
return nil, sdkerrors.Wrapf(err, "client in msg is not exported.ClientState. invalid client: %v", targetClient)
198+
return nil, err
199199
}
200200

201201
if err := k.ConnectionKeeper.ConnOpenAck(

0 commit comments

Comments
 (0)