update message format

This commit is contained in:
Lucas Nogueira
2025-08-28 13:32:50 -03:00
parent 781e8fce97
commit 059bafaab4

View File

@@ -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"))]