From 8817113d95f8cb937dddcd2cd60f43c0a63398ff Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 17 Dec 2009 12:45:13 +0000 Subject: test degradation parameters --- src/http/modules/ngx_http_degradation_module.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/modules/ngx_http_degradation_module.c b/src/http/modules/ngx_http_degradation_module.c index 53fde211f..b221f2215 100644 --- a/src/http/modules/ngx_http_degradation_module.c +++ b/src/http/modules/ngx_http_degradation_module.c @@ -198,9 +198,14 @@ ngx_http_degradation(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) "invalid sbrk size \"%V\"", &value[1]); return NGX_CONF_ERROR; } + + return NGX_CONF_OK; } - return NGX_CONF_OK; + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "invalid parameter \"%V\"", &value[1]); + + return NGX_CONF_ERROR; } -- cgit