Skip to content

Commit

Permalink
Update flex-error version
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed May 27, 2021
1 parent 9f1ea1a commit c710fa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dyn-clonable = "0.9.0"
regex = "1"
subtle-encoding = "0.5"
sha2 = { version = "0.9.3", optional = true }
flex-error = "0.1.0"
flex-error = "0.1.1"

[dependencies.tendermint]
version = "=0.19.0"
Expand Down
10 changes: 5 additions & 5 deletions modules/src/ics26_routing/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ use flex_error::*;

define_error! { RoutingError;
Ics02Client
[ StdError<ics02_client::error::Error> ]
[ DisplayError<ics02_client::error::Error> ]
| _ | { format_args!("ICS02 client error") },

Ics03Connection
[ StdError<ics03_connection::error::Error> ]
[ DisplayError<ics03_connection::error::Error> ]
| _ | { format_args!("ICS03 connection error") },

Ics04Channel
[ StdError<ics04_channel::error::Error> ]
[ DisplayError<ics04_channel::error::Error> ]
| _ | { format_args!("ICS04 channel error") },

Ics20FungibleTokenTransfer
[ StdError<ics20_fungible_token_transfer::error::Error> ]
[ DisplayError<ics20_fungible_token_transfer::error::Error> ]
| _ | { format_args!("ICS20 fungible token transfer error") },

UnknownMessageTypeUrl
{ url: String }
| e | { format_args!("unknown type URL {0}", e.url) },

MalformedMessageBytes
[ StdError<tendermint_proto::Error> ]
[ DisplayError<tendermint_proto::Error> ]
| _ | { format_args!("the message is malformed and cannot be decoded") },
}

0 comments on commit c710fa3

Please sign in to comment.