]> err.no Git - varnish/commitdiff
Change assert to error
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Feb 2009 13:29:58 +0000 (13:29 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Feb 2009 13:29:58 +0000 (13:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3837 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_varnish.c

index 0a951f5bb2c9adbd6c61317eb08fa540cd801254..603eff7684ff1c79a032f5843f9ff20e9c27b49a 100644 (file)
@@ -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);