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 f71255a commit c8cf300Copy full SHA for c8cf300
rust/cubesql/cubesql/src/error.rs
@@ -53,6 +53,8 @@ impl CubeError {
53
pub fn panic(error: Box<dyn Any + Send>) -> Self {
54
if let Some(reason) = error.downcast_ref::<&str>() {
55
CubeError::internal(format!("Unexpected panic. Reason: {}", reason))
56
+ } else if let Some(reason) = error.downcast_ref::<String>() {
57
+ CubeError::internal(format!("Unexpected panic. Reason: {}", reason))
58
} else {
59
CubeError::internal("Unexpected panic without reason".to_string())
60
}
0 commit comments