Skip to content

Commit

Permalink
Merge pull request #2264 from get10101/fix/tradin-error-other-context
Browse files Browse the repository at this point in the history
Keep context for `TradingError::Other`
  • Loading branch information
holzeis authored Mar 18, 2024
2 parents e76604e + 7d97456 commit 81d49ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/commons/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub enum TradingError {

impl From<anyhow::Error> for TradingError {
fn from(value: anyhow::Error) -> Self {
TradingError::Other(value.to_string())
TradingError::Other(format!("{value:#}"))
}
}

Expand Down

0 comments on commit 81d49ef

Please sign in to comment.