Commit 1c0954b3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Instead of assert, issue a error message on VCL compilation returning

unexpected result codes.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3283 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2d35850b
......@@ -368,7 +368,10 @@ varnish_vcl(struct varnish *v, const char *vcl, enum cli_status_e expect)
AZ(vsb_overflowed(vsb));
u = varnish_ask_cli(v, vsb_data(vsb), NULL);
assert(u == expect);
if (u != expect)
vtc_log(v->vl, 0,
"VCL compilation got %u expected %u",
u, expect);
if (u == CLIS_OK) {
vsb_clear(vsb);
vsb_printf(vsb, "vcl.use vcl%d", v->vcl_nbr);
......
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