1
0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-12-13 23:43:37 +00:00

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

This commit is contained in:
jugeeya
2023-02-24 11:22:06 -08:00
committed by GitHub
parent 22ded3b379
commit f268137bc4

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...");