From 021005f0dd41cc62e1c7732202ab6eeb17fa4801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Laferri=C3=A8re?= Date: Thu, 16 Mar 2023 13:54:13 -0400 Subject: [PATCH] fix `ContextError` strings (#548) * fix error strings * changelog --- .changelog/unreleased/improvement/547-error-strings.md | 2 ++ crates/ibc/src/core/context.rs | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changelog/unreleased/improvement/547-error-strings.md diff --git a/.changelog/unreleased/improvement/547-error-strings.md b/.changelog/unreleased/improvement/547-error-strings.md new file mode 100644 index 000000000..d019bc189 --- /dev/null +++ b/.changelog/unreleased/improvement/547-error-strings.md @@ -0,0 +1,2 @@ +- Fix ContextError Display output ([#547](https://github.com/cosmos/ibc- + rs/issues/547)) \ No newline at end of file diff --git a/crates/ibc/src/core/context.rs b/crates/ibc/src/core/context.rs index a1e07dada..74d116b84 100644 --- a/crates/ibc/src/core/context.rs +++ b/crates/ibc/src/core/context.rs @@ -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), }