Skip to content

Commit

Permalink
log missing path when creating it, for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Dec 8, 2024
1 parent 4c86dfd commit 6c86718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ pub fn install(config: &Config, pkg_path: &Path) {
let mod_path = config.get_current_profile().mods_dir();

if !mod_path.exists() {
fs::create_dir_all(&mod_path).nice_unwrap("Could not setup mod installation");
warn!("Path {mod_path:?} does not exist, creating it");
warn!("(Is your profile set up correctly?)");
fs::create_dir_all(&mod_path).nice_unwrap("Failed to create path");
}
fs::copy(pkg_path, mod_path.join(pkg_path.file_name().unwrap()))
.nice_unwrap("Could not install mod");
Expand Down

0 comments on commit 6c86718

Please sign in to comment.