1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-30 22:00:16 +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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ pub fn main() {
}); });
} }
fs::remove_dir_all(LEGACY_TRAINING_MODPACK_ROOT) 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..."); info!("Performing version check...");