mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
show an error message for invalid parameter
This commit is contained in:
parent
0ac3516a02
commit
8d9c63f677
@ -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);
|
max = ngx_atoi(value[i].data + 4, value[i].len - 4);
|
||||||
if (max == NGX_ERROR) {
|
if (max == NGX_ERROR) {
|
||||||
return NGX_CONF_ERROR;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
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);
|
inactive = ngx_parse_time(&s, 1);
|
||||||
if (inactive < 0) {
|
if (inactive < 0) {
|
||||||
return NGX_CONF_ERROR;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@ -3525,6 +3525,8 @@ ngx_http_core_open_file_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
failed:
|
||||||
|
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"invalid \"open_file_cache\" parameter \"%V\"",
|
"invalid \"open_file_cache\" parameter \"%V\"",
|
||||||
&value[i]);
|
&value[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user