Skip to content
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

Stop searching in further dirs on errors except ENOENT #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leonerd
Copy link
Contributor

@leonerd leonerd commented Feb 16, 2019

I don't know if it was intentional, but if a terminfo file was found during the directory search, loaded, and then found to contain an error, the search continues into other locations. If this eventually fails, the error is always ENOENT, thus swallowing the reason that the file which was found, had errored.

This PR changes the behaviour, stopping on the first error that is not ENOENT.

@blueyed
Copy link

blueyed commented Aug 7, 2019

@leonerd
Can you please do this for https://github.com/neovim/unibilium ?
It should probably take into account the other fix we have there already (neovim#2) then.

justinmk pushed a commit to neovim/unibilium that referenced this pull request Aug 11, 2019
if a terminfo file was found during the directory search, loaded, and then found to contain an error, the search continues into other locations. If this eventually fails, the error is always ENOENT, thus swallowing the reason that the file which was found, had errored.

This PR changes the behaviour, stopping on the first error that is not ENOENT.

ref: mauke#41
@justinmk
Copy link

Merged in https://github.com/neovim/unibilium.

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.

3 participants