Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

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

Open
Profpatsch opened this issue Sep 21, 2020 · 1 comment
Labels
bug Something isn't working P1 critical: next release

Comments

@Profpatsch
Copy link
Collaborator

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 Profpatsch added bug Something isn't working P1 critical: next release labels Sep 21, 2020
@seylerius
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working P1 critical: next release
Projects
None yet
Development

No branches or pull requests

2 participants