Skip to content

Commit

Permalink
Unified error messages about duplicate directives.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Mar 22, 2017
1 parent a102671 commit abc9d62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/http/ngx_http_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/stream/ngx_stream_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit abc9d62

Please sign in to comment.