summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2015-02-14 18:24:12 +0000
committerokan <okan>2015-02-14 18:24:12 +0000
commitac42dff6c1a55baf1f73a98dee9b6c4541b64e7b (patch)
tree99d626ad5a71cfdbff27051313315b860febb1d1
parent7e0c2e77288ce7e056402f9a242f1fde99d15ab2 (diff)
downloadcwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.tar.gz
cwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.tar.xz
cwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.zip
simplify error messages; discussed with doug@
-rw-r--r--parse.y11
1 files changed, 5 insertions, 6 deletions
diff --git a/parse.y b/parse.y
index 235bca5..827472c 100644
--- a/parse.y
+++ b/parse.y
@@ -119,21 +119,21 @@ main		: FONTNAME STRING		{
 		}
 		| BORDERWIDTH NUMBER {
 			if ($2 < 0 || $2 > UINT_MAX) {
-				yyerror("invalid borderwidth: %lld", $2);
+				yyerror("invalid borderwidth");
 				YYERROR;
 			}
 			conf->bwidth = $2;
 		}
 		| MOVEAMOUNT NUMBER {
 			if ($2 < 0 || $2 > INT_MAX) {
-				yyerror("invalid movemount: %lld", $2);
+				yyerror("invalid movemount");
 				YYERROR;
 			}
 			conf->mamount = $2;
 		}
 		| SNAPDIST NUMBER {
 			if ($2 < 0 || $2 > INT_MAX) {
-				yyerror("invalid snapdist: %lld", $2);
+				yyerror("invalid snapdist");
 				YYERROR;
 			}
 			conf->snapdist = $2;
@@ -150,8 +150,8 @@ main		: FONTNAME STRING		{
 		}
 		| AUTOGROUP NUMBER STRING	{
 			if ($2 < 0 || $2 > 9) {
+				yyerror("invalid autogroup");
 				free($3);
-				yyerror("invalid autogroup: %lld", $2);
 				YYERROR;
 			}
 			conf_autogroup(conf, $2, $3);
@@ -176,8 +176,7 @@ main		: FONTNAME STRING		{
 			    $3 < 0 || $3 > INT_MAX ||
 			    $4 < 0 || $4 > INT_MAX ||
 			    $5 < 0 || $5 > INT_MAX) {
-				yyerror("invalid gap: %lld %lld %lld %lld",
-				    $2, $3, $4, $5);
+				yyerror("invalid gap");
 				YYERROR;
 			}
 			conf->gap.top = $2;