diff --git a/dlc-manager/src/error.rs b/dlc-manager/src/error.rs index 1e90051c..62f1f4a3 100644 --- a/dlc-manager/src/error.rs +++ b/dlc-manager/src/error.rs @@ -32,16 +32,16 @@ pub enum Error { impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { - Error::Conversion(_) => write!(f, "Conversion error"), - Error::IOError(_) => write!(f, "IO error"), + Error::Conversion(ref e) => write!(f, "Conversion error: {e:#}"), + Error::IOError(ref e) => write!(f, "IO error: {e:#}"), Error::InvalidState(ref s) => write!(f, "Invalid state: {}", s), Error::InvalidParameters(ref s) => write!(f, "Invalid parameters were provided: {}", s), Error::WalletError(ref e) => write!(f, "Wallet error {}", e), Error::BlockchainError(ref s) => write!(f, "Blockchain error {}", s), Error::StorageError(ref s) => write!(f, "Storage error {}", s), - Error::DlcError(_) => write!(f, "Dlc error"), + Error::DlcError(ref e) => write!(f, "Dlc error: {e:#}"), Error::OracleError(ref s) => write!(f, "Oracle error {}", s), - Error::SecpError(_) => write!(f, "Secp error"), + Error::SecpError(ref e) => write!(f, "Secp error: {e:#}"), } } }