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.
String
1 parent b927092 commit fd6f528Copy full SHA for fd6f528
lambda-runtime/src/layers/panic.rs
@@ -99,6 +99,8 @@ impl<F> CatchPanicFuture<'_, F> {
99
fn build_panic_diagnostic(err: &Box<dyn Any + Send>) -> Diagnostic {
100
let error_message = if let Some(msg) = err.downcast_ref::<&str>() {
101
format!("Lambda panicked: {msg}")
102
+ } else if let Some(msg) = err.downcast_ref::<String>() {
103
+ format!("Lambda panicked: {msg}")
104
} else {
105
"Lambda panicked".to_string()
106
};
0 commit comments