Skip to content

Commit

Permalink
Add other error item (#238)
Browse files Browse the repository at this point in the history
* Add Other Error Item

* Create 237-add-othe-erorr-item.md

* fmt code
  • Loading branch information
DaviRain-Su authored Nov 15, 2022
1 parent 249650d commit 9b7f4f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/features/237-add-othe-erorr-item.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add Other Item for Ics02Client,Ics03connection, Ics04Channel Error
([#237](https://github.com/cosmos/ibc-rs/issues/237))
4 changes: 4 additions & 0 deletions crates/ibc/src/core/ics02_client/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,9 @@ define_error! {
ClientSpecific
{ description: String }
| e | { format_args!("client specific error: {0}", e.description) },

Other
{ description: String }
| e| { format_args!("other error: {0}", e.description) },
}
}
4 changes: 4 additions & 0 deletions crates/ibc/src/core/ics03_connection/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,9 @@ define_error! {
reason: String,
}
| e | { format_args!("invalid client state: {0}", e.reason) },

Other
{ description: String }
| e| { format_args!("other error: {0}", e.description) },
}
}
4 changes: 4 additions & 0 deletions crates/ibc/src/core/ics04_channel/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ define_error! {
AbciConversionFailed
{ abci_event: String }
| e | { format_args!("Failed to convert abci event to IbcEvent: {}", e.abci_event)},

Other
{ description: String }
| e| { format_args!("other error: {0}", e.description) },
}
}

Expand Down

0 comments on commit 9b7f4f4

Please sign in to comment.