From 37cbda4b9807e791512e9ec36c20c5b49c6e17c2 Mon Sep 17 00:00:00 2001 From: Pavel Oborin Date: Tue, 22 Oct 2024 14:17:05 +1100 Subject: [PATCH] print an error --- rust_crate/src/interface_web.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust_crate/src/interface_web.rs b/rust_crate/src/interface_web.rs index 8653a2ba..9e849056 100644 --- a/rust_crate/src/interface_web.rs +++ b/rust_crate/src/interface_web.rs @@ -41,6 +41,9 @@ pub fn send_rust_signal_real( js_sys::Uint8Array::from(binary.as_slice()), ) { Ok(_) => Ok(()), - Err(e) => Err(RinfError::NoSignalHandler), + Err(e) => { + crate::debug_print!("An error occured during the launch: {e:?}"); + Err(RinfError::NoSignalHandler) + } } }