From f268137bc4e184549ffbc2085227c0fe27aa911e Mon Sep 17 00:00:00 2001 From: jugeeya Date: Fri, 24 Feb 2023 11:22:06 -0800 Subject: [PATCH] Don't panic on failure to remove legacy dir (#495) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...");