Skip to content

Commit

Permalink
fix ContextError strings (#548)
Browse files Browse the repository at this point in the history
* fix error strings

* changelog
  • Loading branch information
plafer authored Mar 16, 2023
1 parent 8fe5d08 commit 021005f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvement/547-error-strings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix ContextError Display output ([#547](https://github.com/cosmos/ibc-
rs/issues/547))
8 changes: 4 additions & 4 deletions crates/ibc/src/core/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ use displaydoc::Display;

#[derive(Debug, Display)]
pub enum ContextError {
/// ICS02 Client error
/// ICS02 Client error: {0}
ClientError(ClientError),
/// ICS03 Connection error
/// ICS03 Connection error: {0}
ConnectionError(ConnectionError),
/// Ics04 Channel error
/// Ics04 Channel error: {0}
ChannelError(ChannelError),
/// ICS04 Packet error
/// ICS04 Packet error: {0}
PacketError(PacketError),
}

Expand Down

0 comments on commit 021005f

Please sign in to comment.