[master] 24f1c4e Improve ESI error messages
Poul-Henning Kamp
phk at FreeBSD.org
Fri Nov 29 11:43:39 CET 2013
commit 24f1c4e6e721b985688a193c869240b45cb43830
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Nov 29 10:36:56 2013 +0000
Improve ESI error messages
Suggested by: scoof
diff --git a/bin/varnishd/cache/cache_esi_parse.c b/bin/varnishd/cache/cache_esi_parse.c
index 48482c9..1c900f6 100644
--- a/bin/varnishd/cache/cache_esi_parse.c
+++ b/bin/varnishd/cache/cache_esi_parse.c
@@ -626,13 +626,17 @@ VEP_Parse(const struct busyobj *bo, const char *p, size_t l)
vep->state = VEP_STARTTAG;
} else if (p < e && *p == '\xeb') {
VSLb(vep->bo->vsl, SLT_ESI_xmlerror,
- "No ESI processing, first char not '<'"
- " (BOM? see feature esi_remove_bom)"
+ "No ESI processing, "
+ "first char not '<' but BOM."
+ " (See feature esi_remove_bom)"
);
vep->state = VEP_NOTXML;
} else if (p < e) {
VSLb(vep->bo->vsl, SLT_ESI_xmlerror,
- "No ESI processing, first char not '<'");
+ "No ESI processing, "
+ "first char not '<'."
+ " (See feature esi_disable_xml_check)"
+ );
vep->state = VEP_NOTXML;
}
} else if (vep->state == VEP_NOTXML) {
More information about the varnish-commit
mailing list