lorri
lorri copied to clipboard
Wrap io actions that might throw a FileNotFound error into an error type containing the file name
Currently, we use the ? operator a lot to propagate std::io::Errors and then wrap them and throw them outward.
The problem with FileNotFound errors is that these don’t contain the path of the file that is missing, so the resulting error trace is mostly useless.
We can either manually wrap these, or use an error crate like eyre.
This would be really helpful, because I'm currently running into a crash caused by this.