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

Show more info on module load errors #348

Merged
merged 1 commit into from
Apr 4, 2017
Merged

Show more info on module load errors #348

merged 1 commit into from
Apr 4, 2017

Conversation

mayorova
Copy link
Contributor

@mayorova mayorova commented Apr 3, 2017

Closes #347 (only partially)

This helps, but still in some cases the error is confusing and doesn't really point to the module where the problem is. Instead it says something like:

[warn] 63285#0: [lua] module.lua:20: prequire(): cannot read apicast: Is a directory, stack traceback:

So, if there is a better way, please feel free to close this PR, or change the commit. Otherwise, maybe it's better than nothing.

@mikz
Copy link
Contributor

mikz commented Apr 3, 2017

It is definitely better than nothing and I think it should be included in the release.

Later we should change the interface to return mod, err and print it somewhere else. But that should wait to not introduce any issues on the last moment.

@mikz mikz merged commit aee0dcf into master Apr 4, 2017
@mikz mikz deleted the module-load-error-log branch April 4, 2017 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show more information on module load errors
3 participants