diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 6530c5b58099..96ed37e26af9 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -2172,6 +2172,7 @@ fn handle_user_message( .map(|w| &w.inner) { if let Err(e) = webview.evaluate_script(&script) { + #[cfg(debug_assertions)] eprintln!("{}", e); } } @@ -2212,6 +2213,7 @@ fn handle_user_message( sender.send(window_id).unwrap(); } Err(e) => { + #[cfg(debug_assertions)] eprintln!("{}", e); } }, @@ -2679,6 +2681,7 @@ fn handle_event_loop( .map(|w| &w.inner) { if let Err(e) = webview.resize() { + #[cfg(debug_assertions)] eprintln!("{}", e); } }