diff options
author | okan <okan> | 2015-02-14 18:24:12 +0000 |
---|---|---|
committer | okan <okan> | 2015-02-14 18:24:12 +0000 |
commit | ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b (patch) | |
tree | 99d626ad5a71cfdbff27051313315b860febb1d1 | |
parent | 7e0c2e77288ce7e056402f9a242f1fde99d15ab2 (diff) | |
download | cwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.tar.gz cwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.tar.xz cwm-ac42dff6c1a55baf1f73a98dee9b6c4541b64e7b.zip |
simplify error messages; discussed with doug@
-rw-r--r-- | parse.y | 11 |
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; |