Commit edd4ebe2 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Fail if compilation failed and -errvcl was not set

parent 15faf651
......@@ -739,6 +739,11 @@ varnish_vcl(struct varnish *v, const char *vcl, int fail, char **resp)
AZ(VSB_finish(vsb));
u = varnish_ask_cli(v, VSB_data(vsb), NULL);
assert(u == CLIS_OK);
} else if (!fail) {
VSB_destroy(&vsb);
vtc_log(v->vl, 0,
"VCL compilation failed expected success");
return;
} else {
vtc_log(v->vl, 2, "VCL compilation failed (as expected)");
}
......
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