Commit 9aa2ecb5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't assert varnisttest if vcl fails to compile, fail normally.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4765 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7845f516
......@@ -574,9 +574,10 @@ 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)
if (u != CLIS_OK) {
vtc_log(v->vl, 0, "FAIL VCL does not compile");
assert(u == CLIS_OK);
return;
}
vsb_clear(vsb);
vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr);
vsb_finish(vsb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment