Thanks to visit codestin.com
Credit goes to github.com

Skip to content

commit: expose the different kinds of errors #3617

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

Merged
merged 1 commit into from
Feb 16, 2016
Merged

Conversation

carlosmn
Copy link
Member

We should be checking whether the object we're looking up is a commit,
and we should let the caller know whether the not-found return code
comes from a bad object type or just a missing signature.


This is messy because it comes down to error class for the same return code, but GIT_ENOTFOUND is consistent in both cases with what we do for each kind of error.

We should be checking whether the object we're looking up is a commit,
and we should let the caller know whether the not-found return code
comes from a bad object type or just a missing signature.
@vmg
Copy link
Member

vmg commented Feb 16, 2016

👍

carlosmn added a commit that referenced this pull request Feb 16, 2016
commit: expose the different kinds of errors
@carlosmn carlosmn merged commit 474bd2c into master Feb 16, 2016
@carlosmn carlosmn deleted the cmn/extract-sig-errors branch February 16, 2016 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants