Skip to content

Commit 6c86718

Browse files
committed
log missing path when creating it, for easier debugging
1 parent 4c86dfd commit 6c86718

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/package.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ pub fn install(config: &Config, pkg_path: &Path) {
8787
let mod_path = config.get_current_profile().mods_dir();
8888

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

0 commit comments

Comments
 (0)