]> git.kaiwu.me - nginx.git/commitdiff
test degradation parameters
authorIgor Sysoev <igor@sysoev.ru>
Thu, 17 Dec 2009 12:45:13 +0000 (12:45 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 17 Dec 2009 12:45:13 +0000 (12:45 +0000)
src/http/modules/ngx_http_degradation_module.c

index 53fde211f885d4e0c2db29e945ca23d671c36ba7..b221f22150f4169d0e0b35f1728af4d75ea21d4f 100644 (file)
@@ -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;
 }