[master] d65ee24 Improve layout of a couple of error messages.

Poul-Henning Kamp phk at varnish-cache.org
Wed Oct 24 23:51:44 CEST 2012


commit d65ee2403419957708ce01b6d32d695a7da02b2e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Oct 24 21:51:26 2012 +0000

    Improve layout of a couple of error messages.

diff --git a/lib/libvcl/vcc_parse.c b/lib/libvcl/vcc_parse.c
index 10170b3..da50811 100644
--- a/lib/libvcl/vcc_parse.c
+++ b/lib/libvcl/vcc_parse.c
@@ -160,7 +160,7 @@ vcc_Compound(struct vcc *tl)
 				vcc_NextToken(tl);
 			} else {
 				VSB_printf(tl->sb,
-				    "Inline-C not allowed");
+				    "Inline-C not allowed\n");
 				vcc_ErrWhere(tl, tl->t);
 			}
 			break;
@@ -287,7 +287,7 @@ vcc_Parse(struct vcc *tl)
 				vcc_NextToken(tl);
 			} else {
 				VSB_printf(tl->sb,
-				    "Inline-C not allowed");
+				    "Inline-C not allowed\n");
 				vcc_ErrWhere(tl, tl->t);
 			}
 			break;
diff --git a/lib/libvcl/vcc_vmod.c b/lib/libvcl/vcc_vmod.c
index 4ce4f95..c3a2a83 100644
--- a/lib/libvcl/vcc_vmod.c
+++ b/lib/libvcl/vcc_vmod.c
@@ -91,8 +91,7 @@ vcc_ParseImport(struct vcc *tl)
 			return;
 		}
 		if (!vcc_IdIs(tl->t, "from")) {
-			VSB_printf(tl->sb, "Expected 'from path...' at ");
-			vcc_ErrToken(tl, tl->t);
+			VSB_printf(tl->sb, "Expected 'from path...'\n");
 			vcc_ErrWhere(tl, tl->t);
 			return;
 		}



More information about the varnish-commit mailing list