From eb29fb090b138c4a7d879d7db2c5f2fd21b6a277 Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Sun, 6 Oct 2024 17:56:03 -0700 Subject: [PATCH] fix: client mod injection error messages --- src-tauri/src/injection/client_mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/injection/client_mod.rs b/src-tauri/src/injection/client_mod.rs index cfc4b153..dd748bbb 100644 --- a/src-tauri/src/injection/client_mod.rs +++ b/src-tauri/src/injection/client_mod.rs @@ -66,8 +66,8 @@ pub fn load_mods_js() -> String { tasks.push(std::thread::spawn(move || { let response = match reqwest::blocking::get(script_url) { Ok(r) => r, - Err(_) => { - log!("Failed to load client mod JS for {}.", mod_name); + Err(e) => { + log!("Failed to load client mod JS for {}: {:?}", mod_name, e); if mod_name == "Shelter" { log!("Shelter detected: loading fallback!"); @@ -81,7 +81,7 @@ pub fn load_mods_js() -> String { let status = response.status(); if status != 200 { - log!("Failed to load client mod JS for {}.", mod_name); + log!("Failed to load client mod JS for {}: Status {:?}", mod_name, status); if mod_name == "Shelter" { log!("Shelter detected: loading fallback!"); @@ -143,8 +143,8 @@ pub fn load_mods_css() -> String { tasks.push(std::thread::spawn(move || { let response = match reqwest::blocking::get(styles_url) { Ok(r) => r, - Err(_) => { - log!("Failed to load client mod CSS for {}.", mod_name); + Err(e) => { + log!("Failed to load client mod CSS for {}: {:?}", mod_name, e); return String::new(); } }; @@ -152,7 +152,7 @@ pub fn load_mods_css() -> String { let status = response.status(); if status != 200 { - log!("Failed to load client mod CSS for {}.", mod_name); + log!("Failed to load client mod CSS for {}: Status {:?}", mod_name, status); return String::new(); }