Skip to content

Commit 0200526

Browse files
committed
wrap claim capability errors in handshake
1 parent 0389a8b commit 0200526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/apps/27-interchain-accounts/keeper/handshake.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (k Keeper) OnChanOpenInit(
4848

4949
// Claim channel capability passed back by IBC module
5050
if err := k.ClaimCapability(ctx, chanCap, host.ChannelCapabilityPath(portID, channelID)); err != nil {
51-
return sdkerrors.Wrap(channeltypes.ErrChannelCapabilityNotFound, err.Error())
51+
return sdkerrors.Wrap(err, "failed to claim capability")
5252
}
5353

5454
return nil
@@ -84,7 +84,7 @@ func (k Keeper) OnChanOpenTry(
8484
// On the host chain the capability may only be claimed during the OnChanOpenTry
8585
// The capability being claimed in OpenInit is for a controller chain (the port is different)
8686
if err := k.ClaimCapability(ctx, chanCap, host.ChannelCapabilityPath(portID, channelID)); err != nil {
87-
return err
87+
return sdkerrors.Wrap(err, "failed to claim capability")
8888
}
8989

9090
// Check to ensure that the version string contains the expected address generated from the Counterparty portID

0 commit comments

Comments
 (0)