Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
display panic messages if possible
Brendan Allan309089b555b2
diff --git a/crates/media/src/pipeline/builder.rs b/crates/media/src/pipeline/builder.rsindex 5d43a1d9a..18eff37aa 100644--- a/crates/media/src/pipeline/builder.rs+++ b/crates/media/src/pipeline/builder.rs@@ -102,7 +102,15 @@ impl<T> PipelineBuilder<T> {info!("task '{name}' done");res}))- .map_err(|_| format!("Panicked"))+ .map_err(|e| {+ if let Some(s) = e.downcast_ref::<&'static str>() {+ format!("Panicked: {s}")+ } else if let Some(s) = e.downcast_ref::<String>() {+ format!("Panicked: {s}")+ } else {+ format!("Panicked: Unknown error")+ }+ })}).and_then(|v| v);let _ = done_tx.send(result);