mirror of
https://github.com/nginx/nginx.git
synced 2026-09-06 05:19:28 +00:00
Unified error messages about duplicate directives.
This commit is contained in:
parent
a10267126c
commit
abc9d62b03
3 changed files with 3 additions and 3 deletions
|
|
@ -4529,7 +4529,7 @@ ngx_http_core_limit_except(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
ngx_http_core_loc_conf_t *clcf;
|
||||
|
||||
if (pclcf->limit_except) {
|
||||
return "duplicate";
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
pclcf->limit_except = 0xffffffff;
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ ngx_http_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
cv = (ngx_http_complex_value_t **) (p + cmd->offset);
|
||||
|
||||
if (*cv != NULL) {
|
||||
return "duplicate";
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
*cv = ngx_palloc(cf->pool, sizeof(ngx_http_complex_value_t));
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ ngx_stream_set_complex_value_slot(ngx_conf_t *cf, ngx_command_t *cmd,
|
|||
cv = (ngx_stream_complex_value_t **) (p + cmd->offset);
|
||||
|
||||
if (*cv != NULL) {
|
||||
return "duplicate";
|
||||
return "is duplicate";
|
||||
}
|
||||
|
||||
*cv = ngx_palloc(cf->pool, sizeof(ngx_stream_complex_value_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue