aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2012-01-30 09:02:29 +0000
committerValentin Bartenev <vbart@nginx.com>2012-01-30 09:02:29 +0000
commitd4dbf6ad59b2e59b9286763eec3dce273180a906 (patch)
treec8b1f1b357973387bb88b881b5789b70a46d4fa5
parentb3e461e63c39875e63c40f9d620d1a4ece2a9134 (diff)
downloadnginx-d4dbf6ad59b2e59b9286763eec3dce273180a906.tar.gz
nginx-d4dbf6ad59b2e59b9286763eec3dce273180a906.zip
Limit req: error messages fixed.
-rw-r--r--src/http/modules/ngx_http_limit_req_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c
index 1d156157f..164ef9886 100644
--- a/src/http/modules/ngx_http_limit_req_module.c
+++ b/src/http/modules/ngx_http_limit_req_module.c
@@ -691,8 +691,8 @@ ngx_http_limit_req_zone(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
if (ctx == NULL) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
- "no variable is defined for limit_req_zone \"%V\"",
- &cmd->name);
+ "no variable is defined for %V \"%V\"",
+ &cmd->name, &name);
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;
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
- "limit_req_zone \"%V\" is already bound to variable \"%V\"",
- &value[1], &ctx->var);
+ "%V \"%V\" is already bound to variable \"%V\"",
+ &cmd->name, &name, &ctx->var);
return NGX_CONF_ERROR;
}