diff --git a/Cargo.lock b/Cargo.lock index 531d16e..a0e5c22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1369,12 +1369,12 @@ dependencies = [ [[package]] name = "flate2" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", - "miniz_oxide 0.5.4", + "miniz_oxide 0.6.2", ] [[package]] @@ -5133,9 +5133,9 @@ dependencies = [ [[package]] name = "x11-dl" -version = "2.20.0" +version = "2.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c83627bc137605acc00bb399c7b908ef460b621fc37c953db2b09f88c449ea6" +checksum = "b1536d6965a5d4e573c7ef73a2c15ebcd0b2de3347bdf526c34c297c00ac40f0" dependencies = [ "lazy_static", "libc", @@ -5260,9 +5260,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.2+zstd.1.5.2" +version = "2.0.3+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24faa29d97c8ddca9b37b680e3bd2d5439d864a9cac3a0640d086b71c908bb83" +checksum = "44ccf97612ac95f3ccb89b2d7346b345e52f1c3019be4984f0455fb4ba991f8a" dependencies = [ "cc", "libc", diff --git a/src/gupax.rs b/src/gupax.rs index d385b1f..a040a37 100644 --- a/src/gupax.rs +++ b/src/gupax.rs @@ -25,9 +25,9 @@ use egui::{ }; use crate::{ constants::*, - disk::{Gupax,Version}, + disk::Gupax, update::*, - ErrorState,ErrorFerris,ErrorButtons, + ErrorState, }; use std::{ thread, diff --git a/src/update.rs b/src/update.rs index 033923b..8018c04 100644 --- a/src/update.rs +++ b/src/update.rs @@ -270,7 +270,7 @@ impl Update { // Attempt relative to absolute path let p2pool_path = match into_absolute_path(gupax.p2pool_path.clone()) { Ok(p) => p, - Err(e) => { error_state.set("Provided P2Pool path could not be turned into an absolute path", ErrorFerris::Error, ErrorButtons::Okay); return; }, + Err(e) => { error_state.set(format!("Provided P2Pool path could not be turned into an absolute path: {}", e), ErrorFerris::Error, ErrorButtons::Okay); return; }, }; // Attempt to get basename let file = match p2pool_path.file_name() { @@ -299,7 +299,7 @@ impl Update { // Check XMRig path for safety let xmrig_path = match into_absolute_path(gupax.xmrig_path.clone()) { Ok(p) => p, - Err(e) => { error_state.set("Provided XMRig path could not be turned into an absolute path", ErrorFerris::Error, ErrorButtons::Okay); return; }, + Err(e) => { error_state.set(format!("Provided XMRig path could not be turned into an absolute path: {}", e), ErrorFerris::Error, ErrorButtons::Okay); return; }, }; let file = match xmrig_path.file_name() { Some(p) => {