]> granicus.if.org Git - flex/commitdiff
Greater specificity in error messages
authorWill Estes <wlestes@users.sourceforge.net>
Fri, 3 Feb 2012 21:44:33 +0000 (21:44 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Fri, 3 Feb 2012 21:44:33 +0000 (21:44 +0000)
scan.l

diff --git a/scan.l b/scan.l
index 23158764112f69c20cc295f193ef07081be377ed..7569bd1e8454f8627ec88016964d6058c2611eab 100644 (file)
--- a/scan.l
+++ b/scan.l
@@ -189,7 +189,7 @@ M4QEND      "]]"
                         }
                        else
                         {
-                          synerr( _("Input line too long\n"));
+                          synerr( _("Definition name too long\n"));
                           FLEX_EXIT(EXIT_FAILURE);
                         }
 
@@ -297,7 +297,7 @@ M4QEND      "]]"
                         }
                        else
                         {
-                          synerr( _("Input line too long\n"));
+                          format_synerr( _("Definition value for {%s} too long\n"), nmstr);
                           FLEX_EXIT(EXIT_FAILURE);
                         }
                        /* Skip trailing whitespace. */
@@ -440,7 +440,7 @@ M4QEND      "]]"
                         }
                        else
                         {
-                          synerr( _("Input line too long\n"));
+                          synerr( _("Option line too long\n"));
                           FLEX_EXIT(EXIT_FAILURE);
                         }
                        nmstr[strlen( nmstr ) - 1] = '\0';