We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6ca86 commit 817998dCopy full SHA for 817998d
rust/cubesql/cubesql/src/error.rs
@@ -56,11 +56,11 @@ impl CubeError {
56
57
pub fn panic_with_message(error: Box<dyn Any + Send>, message: &str) -> Self {
58
if let Some(reason) = error.downcast_ref::<&str>() {
59
- CubeError::internal(format!("{}. Reason: {}", reason))
+ CubeError::internal(format!("{}. Reason: {}", message, reason))
60
} else if let Some(reason) = error.downcast_ref::<String>() {
61
62
} else {
63
- CubeError::internal("{} without reason".to_string())
+ CubeError::internal(format!("{} without reason", message))
64
}
65
66
0 commit comments