Skip to content

Commit

Permalink
fix: Keep context for TradingError::Other
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Mar 18, 2024
1 parent e76604e commit 7d97456
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 7d97456

Please sign in to comment.