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

Improved error messages for module loading failures. #804

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

xeioex
Copy link
Contributor

@xeioex xeioex commented Oct 19, 2024

No description provided.

@xeioex xeioex force-pushed the module_loader_improvement branch from 1838fe3 to ea9b2a7 Compare October 19, 2024 01:43
@xeioex xeioex requested a review from VadimZhestikov October 19, 2024 05:04
VadimZhestikov
VadimZhestikov previously approved these changes Oct 19, 2024
There are several reasons why a file cannot be opened. Without
extra information, especially in containerized environments, these
problems are difficult to debug. Adding errno status to the
error output helps identify the root cause.

Additionally, error messages are now aligned between njs and QuickJS.
@xeioex xeioex force-pushed the module_loader_improvement branch from 199f871 to 9611563 Compare October 22, 2024 00:36
@xeioex xeioex changed the title Parser: improved message when a module cannot be loaded. Improved error messages for module loading failures. Oct 22, 2024
@xeioex xeioex merged commit ed36e94 into nginx:master Oct 22, 2024
1 check passed
@xeioex xeioex deleted the module_loader_improvement branch October 22, 2024 01:06
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