Skip to content

Commit 817998d

Browse files
committed
chore: fix
1 parent 4f6ca86 commit 817998d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/cubesql/cubesql/src/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ impl CubeError {
5656

5757
pub fn panic_with_message(error: Box<dyn Any + Send>, message: &str) -> Self {
5858
if let Some(reason) = error.downcast_ref::<&str>() {
59-
CubeError::internal(format!("{}. Reason: {}", reason))
59+
CubeError::internal(format!("{}. Reason: {}", message, reason))
6060
} else if let Some(reason) = error.downcast_ref::<String>() {
61-
CubeError::internal(format!("{}. Reason: {}", reason))
61+
CubeError::internal(format!("{}. Reason: {}", message, reason))
6262
} else {
63-
CubeError::internal("{} without reason".to_string())
63+
CubeError::internal(format!("{} without reason", message))
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)