-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Would like a way to toggle on more information #55
Comments
Thanks for the suggestion! This does sound like it would be useful I think this would add more complexity to this crate than I'm keen to support, however. Needing custom logic for many different API calls and status codes sounds like a lot of extra maintenance. That |
I've been poking at this on-and-off for awhile. I'm not quite ready to send a PR, but to give you an idea of what I'm envisioning is possibly hooking into something like this https://github.com/schneems/path_facts with a feature to optionally enhance the output. The thought here was to extract the logic into its own encapsulated module and provide a small public API, then |
I like the idea of having a dependency on another crate which provides more debug information, gated behind a feature flag. I can imagine this being super useful to enable crate-wide while debugging, but disabling in production. I'd be open to a PR adding a dependency on |
Today
Produces this error:
Proposal
I would like the ability to tell
fs_err
to give me more information on failure. In this case the directory for file did not exist and I had to:I'm not sure on the mechanics, but I would like to add debugging info like:
Or
Or
I did something like this for missing commands on the PATH https://github.com/schneems/which_problem, but it seems there are more states to consider here.
Consequences
The debugging process will possibly generate N additional filesystem calls. I think that the costs would be worth it (compute time is cheaper than developer time and a good user experience is the goal). Maybe people who use this library prefer better diagnostic errors every time? I feel someone will likely not want it or want to disable it. We could feature flag it.
The text was updated successfully, but these errors were encountered: