# HG changeset patch # User Igor Sysoev # Date 1215112785 0 # Node ID 505af86ac9cb0804a96b664af08002f5a3964d6c # Parent 5baf7e5b2d6e6a22d2e2e04e13204c48ec6627ca show an error message for invalid parameter diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3499,7 +3499,7 @@ ngx_http_core_open_file_cache(ngx_conf_t max = ngx_atoi(value[i].data + 4, value[i].len - 4); if (max == NGX_ERROR) { - return NGX_CONF_ERROR; + goto failed; } continue; @@ -3512,7 +3512,7 @@ ngx_http_core_open_file_cache(ngx_conf_t inactive = ngx_parse_time(&s, 1); if (inactive < 0) { - return NGX_CONF_ERROR; + goto failed; } continue; @@ -3525,6 +3525,8 @@ ngx_http_core_open_file_cache(ngx_conf_t continue; } + failed: + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid \"open_file_cache\" parameter \"%V\"", &value[i]);