8000 Added the missing ngx.ERROR constant by jdesgats · Pull Request #123 · mpeterv/luacheck · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added the missing ngx.ERROR constant #123

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
Sep 8, 2017

Conversation

jdesgats
Copy link
Contributor
@jdesgats jdesgats commented Sep 7, 2017

I somehow missed that constant on my initial pull request (documented there: https://github.com/openresty/lua-nginx-module#core-constants).

A possible workaround for people affected by the bug is to add this in the .luacheckrc file

stds.ngx_patched = {         
   globals = {
      ngx = {
         fields = {
            ERROR = {},
         },
      },
   },
}
std = "ngx_lua+ngx_patched"

@mpeterv
Copy link
Owner
mpeterv commented Sep 8, 2017

Thanks! I'll release a patch version today or tomorrow.

@mpeterv mpeterv merged commit 411691b into mpeterv:master Sep 8, 2017
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
0