Skip to content

Commit 50bd377

Browse files
Merge pull request #139 from ashleygwilliams/fix-bug
fix(logger): if no path, append wasm-pack.log to current dir
2 parents 296d685 + d80a9dc commit 50bd377

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/logger.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ fn log_file_path(cmd: &Command) -> PathBuf {
4949
path_buf.push("wasm-pack.log");
5050
path_buf
5151
} else {
52-
this_dir()
52+
let mut path_buf = this_dir();
53+
path_buf.push("wasm-pack.log");
54+
path_buf
5355
}
5456
} else {
55-
this_dir()
57+
let mut path_buf = this_dir();
58+
path_buf.push("wasm-pack.log");
59+
path_buf
5660
}
5761
}
5862

0 commit comments

Comments
 (0)