Skip to content

Commit

Permalink
chore: Log error reason on error
Browse files Browse the repository at this point in the history
  • Loading branch information
holzeis committed Feb 6, 2024
1 parent 0786724 commit 97472b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dlc-manager/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:#}"),
}
}
}
Expand Down

0 comments on commit 97472b5

Please sign in to comment.