Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing: object, return ErrFileNotFound in FindEntry. Fixes #883 #885

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

jsravn
Copy link
Contributor

@jsravn jsravn commented Jul 5, 2018

FindEntry will return ErrDirNotFound if the directory doesn't exist. But
it doesn't return the corresponding error if the file itself is missing.
This adds the logic to return ErrEntryNotFound, so users can
programmatically check for this condition.

FindEntry will return ErrDirNotFound if the directory doesn't exist. But
it doesn't return a public error if the entry itself is missing.  This
exposes the internal error ErrEntryNotFound, so users can
programmatically check for this condition.

Signed-off-by: James Ravn <[email protected]>
@smola smola requested a review from mcuadros July 12, 2018 08:56
@mcuadros mcuadros merged commit 5b1d537 into src-d:master Jul 16, 2018
@jsravn
Copy link
Contributor Author

jsravn commented Jul 16, 2018

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants