Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-03 23:19:45 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-07-03 23:19:45 +0400
commit8d9c63f677b57d799f0105444617d9acab15dad2 (patch)
tree07bb50cc1c84037173e3b3010ca0831b999b3e60 /src
parent0ac3516a0253a0ed50d9235ae2bcb460ef572354 (diff)
show an error message for invalid parameter
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 4 insertions, 2 deletions
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]);