]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
modula2: Improve error message to include symbol name.
authorGaius Mulley <gaiusmod2@gmail.com>
Wed, 24 Jul 2024 13:26:39 +0000 (14:26 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Wed, 24 Jul 2024 13:26:39 +0000 (14:26 +0100)
gcc/m2/ChangeLog:

* gm2-compiler/M2StateCheck.mod (GenerateError): Add
symbol name to the error message.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2StateCheck.mod

index e53cb174474c6cdcb6b1f403e0859c670722ebb5..940c433bcc14bf4c057265edfe272733b4341fab 100644 (file)
@@ -306,7 +306,7 @@ PROCEDURE GenerateError (tok: CARDINAL; s: StateCheck; sym: CARDINAL) ;
 VAR
    str: String ;
 BEGIN
-   str := InitString ('not expecting a {%1Ad} {%1a: }in a ') ;
+   str := InitString ('not expecting the {%1Ad} {%1a} in a ') ;
    IF const IN s^.state
    THEN
       str := ConCat (str, Mark (InitString ('{%kCONST} block')))