From: Igor Sysoev Date: Thu, 3 Jul 2008 19:19:45 +0000 (+0000) Subject: show an error message for invalid parameter X-Git-Tag: release-0.7.6~3 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=8d9c63f677b57d799f0105444617d9acab15dad2;p=nginx.git 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 index f7b8b5b17..20aba8653 100644 --- 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 *cf, ngx_command_t *cmd, void *conf) 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 *cf, ngx_command_t *cmd, void *conf) 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 *cf, ngx_command_t *cmd, void *conf) continue; } + failed: + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid \"open_file_cache\" parameter \"%V\"", &value[i]);