Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lambda-runtime/src/layers/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ impl<F> CatchPanicFuture<'_, F> {
fn build_panic_diagnostic(err: &Box<dyn Any + Send>) -> Diagnostic {
let error_message = if let Some(msg) = err.downcast_ref::<&str>() {
format!("Lambda panicked: {msg}")
} else if let Some(msg) = err.downcast_ref::<String>() {
format!("Lambda panicked: {msg}")
} else {
"Lambda panicked".to_string()
};
Expand Down