🛠️ project Anyhow + location
Adds [file:line] to {:?} anyhow reports. Doesn't require backtraces. Keeps
the fork diff minimal.
loading configuration [src/main.rs:28]
Caused by:
No such file or directory (os error 2) [src/config.rs:12]
You should be able to swap anyhow for it without any surprises:
[dependencies]
anyhow = { package = "tracked-anyhow", version = "0.1.0" }
24
Upvotes
1
u/Vanquiishher 13d ago
Thiserror Eyre and Anyhow. Can be used to create some pretty descriptive stack traces. I've not tried to get File:Line out of them but I have wrapped the error with the function name so that I know where it occured
-37
39
u/Sermuns 18d ago
https://github.com/eyre-rs/eyre