-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add UFO dir and mandatory .plist file read path existence checks and invalid path diagnostics #143
Add UFO dir and mandatory .plist file read path existence checks and invalid path diagnostics #143
Conversation
…d path error reporting
Ah, yes, I'm interested in better error messages. I think this can be done more elegantly maybe, though. One could match on Edit: there's also this method on plist's Error type: https://docs.rs/plist/1.1.0/plist/struct.Error.html#method.is_io, so it's easy to determine if it's actually an IO error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks chris, improving diagnostics is always helpful!
@madig do you have further thoughts on this? I'm happy to merge as-is, I think there are other possible approaches but this one feels reasonable. 🤷 |
Thinking about this a bit more, what I would love is a new |
Wrap the UFO dir check into that error handling approach and close this PR? |
How about this approach instead? #146 |
Current formatted error:
New formatted error with changes in this PR:
Tested in this executable with argument
bogus/path
: