diff --git a/src/lib.rs b/src/lib.rs index 42cb9f2..bf6d0bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,7 @@ pub fn main() { }); } fs::remove_dir_all(LEGACY_TRAINING_MODPACK_ROOT) - .expect("Could not delete legacy Training Modpack folder!"); + .unwrap_or_else(|e| error!("Could not delete legacy Training Modpack folder with error {e}")); } info!("Performing version check...");