dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU](patch) improved error messages with cscc


From: Sriram Karra
Subject: [DotGNU](patch) improved error messages with cscc
Date: 07 Mar 2002 15:12:33 +0530
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

The following patch produces slightly improved error messages in some
cases.

Index: cscc/cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/cs_grammar.y,v
retrieving revision 1.34
diff -u -r1.34 cs_grammar.y
--- cscc/cs_grammar.y   26 Jan 2002 03:40:27 -0000      1.34
+++ cscc/cs_grammar.y   3 Mar 2002 22:42:53 -0000
@@ -217,19 +217,19 @@
                                ++posn;
                        }
                        newmsg[outposn] = '\0';
-                       CSError("%s", newmsg);
+                       CSError("%s before `%s'", newmsg, cs_text);
                        ILFree(newmsg);
                }
                else
                {
-                       CSError("%s", msg);
+                       CSError("%s before `%s'", msg, cs_text);
                }
        }
        else
        {
                /* The parser has probably included information as to what
                   is expected in this context, so report that */
-               CSError("%s", msg);
+               CSError("%s before `%s'", msg, cs_text);
        }
 }


-- 
"Have you ever fought an IDEA, Picard?"
      -- Gowron, Star Trek, TNG



reply via email to

[Prev in Thread] Current Thread [Next in Thread]