mirror of
https://github.com/nginx/nginx.git
synced 2025-01-01 03:36:59 -06:00
Limit req: error messages fixed.
This commit is contained in:
parent
b3e461e63c
commit
d4dbf6ad59
@ -691,8 +691,8 @@ ngx_http_limit_req_zone(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
|
|
||||||
if (ctx == NULL) {
|
if (ctx == NULL) {
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"no variable is defined for limit_req_zone \"%V\"",
|
"no variable is defined for %V \"%V\"",
|
||||||
&cmd->name);
|
&cmd->name, &name);
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -708,8 +708,8 @@ ngx_http_limit_req_zone(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
ctx = shm_zone->data;
|
ctx = shm_zone->data;
|
||||||
|
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"limit_req_zone \"%V\" is already bound to variable \"%V\"",
|
"%V \"%V\" is already bound to variable \"%V\"",
|
||||||
&value[1], &ctx->var);
|
&cmd->name, &name, &ctx->var);
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user