Commit b2f9f2fb authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Display the VCL syntax during a panic

parent 02dd83ba
......@@ -212,6 +212,7 @@ VCL_Panic(struct vsb *vsb, const struct vcl *vcl)
VSB_printf(vsb, "conf = NULL\n");
} else {
PAN_CheckMagic(vsb, vcl->conf, VCL_CONF_MAGIC);
VSB_printf(vsb, "syntax = \"%d\",\n", vcl->conf->syntax);
VSB_printf(vsb, "srcname = {\n");
VSB_indent(vsb, 2);
for (i = 0; i < vcl->conf->nsrc; ++i)
......
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