From def4093845de80ea5f7e8eecf6e851b10d65fb77 Mon Sep 17 00:00:00 2001 From: Will Medrano Date: Wed, 9 Oct 2024 08:15:14 -0700 Subject: [PATCH] Improve panic error message. --- src/client/callbacks.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/callbacks.rs b/src/client/callbacks.rs index 307d5be7..8dba74be 100644 --- a/src/client/callbacks.rs +++ b/src/client/callbacks.rs @@ -189,11 +189,10 @@ where match res { Ok(res) => res.to_ffi(), Err(err) => { - eprintln!("harhar"); if let Some(ctx) = CallbackContext::::from_raw(data) { ctx.mark_invalid(true) } - eprintln!("{err:?}"); + eprintln!("JACK process callback panicked.\n{err:?}"); std::mem::forget(err); Control::Quit.to_ffi() }