[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [master] d65ee24 Improve layout of a couple of error messages.
From: Poul-Henning Kamp <phk () varnish-cache ! org>
Date: 2012-10-24 21:51:44
Message-ID: E1TR8rY-0000Mc-Si () project ! varnish-software ! com
[Download RAW message or body]
commit d65ee2403419957708ce01b6d32d695a7da02b2e
Author: Poul-Henning Kamp <phk@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;
}
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic