From 059bafaab4ce590dfb82ed7255fe8e2705f1c976 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 28 Aug 2025 13:32:50 -0300 Subject: [PATCH] update message format --- crates/tauri-runtime-wry/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index a69a389a5..85d5c2dc3 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -4583,8 +4583,11 @@ You may have it installed on another user account, but it is not available for t #[cfg(windows)] if cfg!(debug_assertions) && occupied.environment_options != environment_options { - let message = - format!("environment options {environment_options:?} for {web_context_key:?} do not match previously defined options for the same data directory on webviews {:?}, expected {:?}. Since this results in a crash, we are going to force the previously defined environment options", occupied.referenced_by_webviews, occupied.environment_options); + let message = format!( + "environment options {environment_options:?} for {} do not match previously defined options for the same data directory on webviews {:?}, expected {:?}. Since this results in a crash, we are going to force the previously defined environment options", + web_context_key.as_ref().map(|p| p.to_string_lossy()).unwrap_or_else(|| "".into()), + occupied.referenced_by_webviews, occupied.environment_options + ); #[cfg(feature = "tracing")] tracing::warn!("{message}"); #[cfg(not(feature = "tracing"))]