Chris Krycho on Nostr: Error messages that could be better: ``` Error: Os { code: 20, kind: NotADirectory, ...
Error messages that could be better:
```
Error: Os { code: 20, kind: NotADirectory, message: "Not a directory" }
```
Cool, thanks Rust, but: what is the file path that is not a directory?!? (Sure, you can “fix” this “easily”… but why does `std::io::Error` not capture it in the first place?)
```
Error: Os { code: 20, kind: NotADirectory, message: "Not a directory" }
```
Cool, thanks Rust, but: what is the file path that is not a directory?!? (Sure, you can “fix” this “easily”… but why does `std::io::Error` not capture it in the first place?)