Open Profpatsch opened 4 years ago
Currently, we use the ? operator a lot to propagate std::io::Errors and then wrap them and throw them outward.
?
std::io::Errors
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.
FileNotFound
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.
Currently, we use the
?
operator a lot to propagatestd::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.