Skip to content

Commit

Permalink
fix: client mod injection error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 7, 2024
1 parent 99dbd28 commit eb29fb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src-tauri/src/injection/client_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand All @@ -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!");
Expand Down Expand Up @@ -143,16 +143,16 @@ 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();
}
};

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();
}

Expand Down

0 comments on commit eb29fb0

Please sign in to comment.