Don't panic on failure to remove legacy dir (#495)

This commit is contained in:
jugeeya authored and GitHub committed 2023-02-24 11:22:06 -08:00
1 parent 22ded3b379
commit f268137bc4
1 file changed
+1 -1
+1 -1
View File
@@ -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...");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.