From 8b9175e3f86369783a7d4261e4f436387b6a4d98 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Feb 2009 13:29:58 +0000 Subject: [PATCH] Change assert to error git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3837 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_varnish.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishtest/vtc_varnish.c b/varnish-cache/bin/varnishtest/vtc_varnish.c index 0a951f5b..603eff76 100644 --- a/varnish-cache/bin/varnishtest/vtc_varnish.c +++ b/varnish-cache/bin/varnishtest/vtc_varnish.c @@ -424,6 +424,8 @@ varnish_vclbackend(struct varnish *v, const char *vcl) AZ(vsb_overflowed(vsb)); u = varnish_ask_cli(v, vsb_data(vsb), NULL); + if (u != CLIS_OK) + vtc_log(v->vl, 0, "FAIL VCL does not compile"); assert(u == CLIS_OK); vsb_clear(vsb); vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr); -- 2.39.5