Skip to content

Commit 8e6f7b0

Browse files
authored
Enable path debug in filesystem error messages (#93)
Before: ``` failed to open file `file.txt`: The system cannot find the file specified. (os error 2) ``` After (with `debug` feature): ``` failed to open file `file.txt`: The system cannot find the file specified. (os error 2) Path does not exist `file.txt` - Absolute path `/path/to/dir/file.txt` - Missing `file.txt` from parent directory: `/path/to/dir` └── `file.md` └── `different.txt` ```
1 parent a6f1c5e commit 8e6f7b0

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

Cargo.lock

Lines changed: 36 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bullet_stream = "0.11"
1515
chrono = {version = "0.4", features = ["serde"] }
1616
clap = { version = "4.5", features = ["derive"] }
1717
flate2 = "1"
18-
fs-err = "3"
18+
fs-err = { version = "3", features = ["debug"] }
1919
fs2 = "0.4"
2020
fun_run = "0.6"
2121
gem_version = "0.3"

0 commit comments

Comments
 (0)