Skip to content

Commit

Permalink
Update error messages which returned from ibc-go (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubo39 authored Jun 3, 2022
1 parent 6ff966d commit 09c9f9f
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions relayer/src/sdk_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,85 +32,85 @@ define_error! {
|_| { "light client already exists" },

InvalidLightClient
|_| { "light client already exists" },
|_| { "light client is invalid" },

LightClientNotFound
|_| { "light client already exists" },
|_| { "light client not found" },

FrozenLightClient
|_| { "light client already exists" },
|_| { "light client is frozen due to misbehaviour" },

InvalidClientMetadata
|_| { "light client already exists" },
|_| { "invalid client metadata" },

ConsensusStateNotFound
|_| { "light client already exists" },
|_| { "consensus state not found" },

InvalidConsensusState
|_| { "light client already exists" },
|_| { "invalid consensus state" },

ClientTypeNotFound
|_| { "light client already exists" },
|_| { "client type not found" },

InvalidClientType
|_| { "light client already exists" },
|_| { "invalid client type" },

CommitmentRootNotFound
|_| { "light client already exists" },
|_| { "commitment root not found" },

InvalidClientHeader
|_| { "light client already exists" },
|_| { "invalid client header" },

InvalidLightClientMisbehavior
|_| { "light client already exists" },
|_| { "invalid light client misbehaviour" },

ClientStateVerificationFailed
|_| { "light client already exists" },
|_| { "client state verification failed" },

ClientConsensusStateVerificationFailed
|_| { "light client already exists" },
|_| { "client consensus state verification failed" },

ConnectionStateVerificationFailed
|_| { "light client already exists" },
|_| { "connection state verification failed" },

ChannelStateVerificationFailed
|_| { "light client already exists" },
|_| { "channel state verification failed" },

PacketCommitmentVerificationFailed
|_| { "light client already exists" },
|_| { "packet commitment verification failed" },

PacketAcknowledgementVerificationFailed
|_| { "light client already exists" },
|_| { "packet acknowledgement verification failed" },

PacketReceiptVerificationFailed
|_| { "light client already exists" },
|_| { "packet receipt verification failed" },

NextSequenceReceiveVerificationFailed
|_| { "light client already exists" },
|_| { "next sequence receive verification failed" },

SelfConsensusStateNotFound
|_| { "light client already exists" },
|_| { "self consensus state not found" },

UpdateLightClientFailed
|_| { "light client already exists" },
|_| { "unable to update light client" },

InvalidUpdateClientProposal
|_| { "light client already exists" },
|_| { "invalid update client proposal" },

InvalidClientUpgrade
|_| { "light client already exists" },
|_| { "invalid client upgrade" },

InvalidHeight
|_| { "light client already exists" },
|_| { "invalid height" },

InvalidClientStateSubstitute
|_| { "light client already exists" },
|_| { "invalid client state substitute" },

InvalidUpgradeProposal
|_| { "light client already exists" },
|_| { "invalid upgrade proposal" },

InactiveClient
|_| { "light client already exists" },
|_| { "client is not active" },

UnknownClient
{ code: u32 }
Expand Down

0 comments on commit 09c9f9f

Please sign in to comment.