Skip to content

Commit

Permalink
Merge pull request #184 from yyamano/fix-error-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumotory authored Jul 15, 2016
2 parents 02f23c4 + d3093ba commit 3279e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/ngx_http_mruby_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,9 +1688,9 @@ static char *ngx_http_mruby_set_inner(ngx_conf_t *cf, ngx_command_t *cmd, void *
rc = ngx_http_mruby_shared_state_compile(cf, filter_data->state, filter_data->code);
if (rc != NGX_OK) {
if (type == NGX_MRB_CODE_TYPE_FILE) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "mrb_file(%s) open failed", value[1].data);
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "mrb_file(%s) open failed", value[2].data);
} else {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "mrb_string(%s) load failed", value[1].data);
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "mrb_string(%s) load failed", value[2].data);
}
return NGX_CONF_ERROR;
}
Expand Down

0 comments on commit 3279e8f

Please sign in to comment.