update err to match others (#7857)

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
colin axnér
2020-11-09 17:12:00 +00:00
committed by GitHub
co-authored by Federico Kunze mergify[bot]
parent 90e9370bd8
commit 55772aec8c
@@ -348,7 +348,7 @@ func (cs ClientState) VerifyPacketCommitment(
}
if err := merkleProof.VerifyMembership(cs.ProofSpecs, consensusState.GetRoot(), path, commitmentBytes); err != nil {
return sdkerrors.Wrap(clienttypes.ErrFailedPacketCommitmentVerification, err.Error())
return err
}
return nil