From 5dc8a8ccd8fa0582a83b9e37bbde8f669bc06fca Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Fri, 17 May 2013 13:13:43 +0200 Subject: [PATCH] varnish: hint about missing block The warning when the Collect* configuration options where used outside of an block was confusing. This patch warns the user the same way the apache plugin does. --- src/varnish.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/varnish.c b/src/varnish.c index 602f47af..5de3389d 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -603,7 +603,9 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ else { WARNING ("Varnish plugin: Ignoring unknown " - "configuration option: \"%s\"", + "configuration option: \"%s\". Did " + "you forget to add an " + "block around the configuration?", child->key); } } -- 2.11.0