From d4017d505ced7d54a6b2805b3fdb3dc4d6e97ebc Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 23 Oct 2021 14:31:01 -0300 Subject: [PATCH] chore: remove `eprintln!` usage on release [TRI-051] (#15) --- core/tauri-runtime-wry/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 6530c5b58..96ed37e26 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); } }