Browse Source

* write expressions when getting an invalid operand error in preprocessor

git-svn-id: trunk@11546 -
florian 17 years ago
parent
commit
0789e9409d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/scanner.pas

+ 1 - 1
compiler/scanner.pas

@@ -1280,7 +1280,7 @@ In case not, the value returned can be arbitrary.
                else
                else
                  begin
                  begin
                    if (exprType * exprType2) = [] then
                    if (exprType * exprType2) = [] then
-                     CTEError(exprType2, exprType, tokeninfo^[op].str);
+                     CTEError(exprType2, exprType, '"'+hs1+' '+tokeninfo^[op].str+' '+hs2+'"');
 
 
                    if is_number(hs1) and is_number(hs2) then
                    if is_number(hs1) and is_number(hs2) then
                      begin
                      begin