Skip to content

Commit 2665f3e

Browse files
author
Gaius Mulley
committed
[PATCH] modula2: Improve error message to include symbol name.
gcc/m2/ChangeLog: * gm2-compiler/M2StateCheck.mod (GenerateError): Add symbol name to the error message. (cherry picked from commit 6a99f3a) Signed-off-by: Gaius Mulley <[email protected]>
1 parent 0891093 commit 2665f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/m2/gm2-compiler/M2StateCheck.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ PROCEDURE GenerateError (tok: CARDINAL; s: StateCheck; sym: CARDINAL) ;
306306
VAR
307307
str: String ;
308308
BEGIN
309-
str := InitString ('not expecting a {%1Ad} {%1a: }in a ') ;
309+
str := InitString ('not expecting the {%1Ad} {%1a} in a ') ;
310310
IF const IN s^.state
311311
THEN
312312
str := ConCat (str, Mark (InitString ('{%kCONST} block')))

0 commit comments

Comments
 (0)