Skip to content

Commit 8358abc

Browse files
committed
primitives - adapter - Error impl Display formatting
1 parent 120482c commit 8358abc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

primitives/src/adapter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ impl<AE: AdapterErrorKind> From<AE> for Error<AE> {
3434
impl<AE: AdapterErrorKind> fmt::Display for Error<AE> {
3535
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3636
match self {
37-
Error::Authentication(error) => write!(f, "Authentication error: {}", error),
38-
Error::Authorization(error) => write!(f, "Authorization error: {}", error),
37+
Error::Authentication(error) => write!(f, "Authentication: {}", error),
38+
Error::Authorization(error) => write!(f, "Authorization: {}", error),
3939
Error::InvalidChannel(error) => write!(f, "{}", error),
40-
Error::Adapter(error) => write!(f, "Adapter specific error: {}", error),
41-
Error::Domain(error) => write!(f, "Domain error: {}", error),
40+
Error::Adapter(error) => write!(f, "Adapter specific: {}", error),
41+
Error::Domain(error) => write!(f, "Domain: {}", error),
4242
Error::LockedWallet => write!(f, "You must `.unlock()` the wallet first"),
4343
}
4444
}

0 commit comments

Comments
 (0)