lorri icon indicating copy to clipboard operation
lorri copied to clipboard

Wrap io actions that might throw a FileNotFound error into an error type containing the file name

Open Profpatsch opened this issue 5 years ago • 1 comments

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.

Profpatsch avatar Sep 21 '20 15:09 Profpatsch

This would be really helpful, because I'm currently running into a crash caused by this.

sableseyler avatar Dec 08 '20 09:12 sableseyler