Commit 8b863def authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Return on error, we are in the vtc_thread



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4745 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4bfc2445
......@@ -509,10 +509,12 @@ 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);
if (u != expect)
if (u != expect) {
vtc_log(v->vl, 0,
"VCL compilation got %u expected %u",
u, expect);
return;
}
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