-
Notifications
You must be signed in to change notification settings - Fork 5
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
git-ext: Better handling of "not found" errors #29
Comments
Ok, after the discussion here, I think we should not re-export the |
Yes, it's re-exported from the top-level crate, so I know it as |
In that case I think we could create our own Git error type inside heartwood, and use that. No need to change anything with git_ext, just not export the errors from the top level, or alias them as eg. BlobError if we do. |
Actually it would still be useful to have that |
Currently I have code like this:
It would be nice if
git_ext::Error
simply had ais_not_found(&self) -> bool
method, so that it could be converted to:This is the pattern I've been using with my other error types.
The text was updated successfully, but these errors were encountered: