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

Fix incorrect error messages. #184

Merged
merged 1 commit into from
Jul 15, 2016

Conversation

yyamano
Copy link
Collaborator

@yyamano yyamano commented Jul 15, 2016

mruby_set with a non-existent file path give me the follwoing incorrect error message.
'mrb_file($foo)' should be 'mrb_file(/path/to/foo.rb).

nginx: [emerg] mrb_file($foo) open failed in /home/vagrant/ngx_mruby/build/nginx/conf/nginx.conf:89

Here is my configuration.

location /foo {
  mruby_set $foo /path/to/foo.rb;
}

The change fixes the message as below:

nginx: [emerg] mrb_file(/path/to/foo.rb) open failed in /home/vagrant/ngx_mruby/build/nginx/conf/nginx.conf:89

@matsumotory matsumotory merged commit 3279e8f into matsumotory:master Jul 15, 2016
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