Skip to content

Stop searching in further dirs on errors except ENOENT#41

Open
leonerd wants to merge 1 commit intomauke:masterfrom
leonerd:leonerd/stop-dirsearch-on-error
Open

Stop searching in further dirs on errors except ENOENT#41
leonerd wants to merge 1 commit intomauke:masterfrom
leonerd:leonerd/stop-dirsearch-on-error

Conversation

@leonerd
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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