Pārlūkot izejas kodu

fcl-passrc: scanner: fixed error message format to be fpc compatible

git-svn-id: trunk@37087 -
Mattias Gaertner 8 gadi atpakaļ
vecāks
revīzija
b5332501d7
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      packages/fcl-passrc/src/pscanner.pp

+ 2 - 2
packages/fcl-passrc/src/pscanner.pp

@@ -2408,14 +2408,14 @@ end;
 procedure TPascalScanner.Error(MsgNumber: integer; const Msg: string);
 begin
   SetCurMsg(mtError,MsgNumber,Msg,[]);
-  raise EScannerError.CreateFmt('Error: %s(%d,%d) : %s',[CurFilename,CurRow,CurColumn,FLastMsg]);
+  raise EScannerError.CreateFmt('%s(%d,%d) Error: %s',[CurFilename,CurRow,CurColumn,FLastMsg]);
 end;
 
 procedure TPascalScanner.Error(MsgNumber: integer; const Fmt: string;
   Args: array of const);
 begin
   SetCurMsg(mtError,MsgNumber,Fmt,Args);
-  raise EScannerError.CreateFmt('Error: %s(%d,%d) : %s',[CurFilename,CurRow,CurColumn,FLastMsg]);
+  raise EScannerError.CreateFmt('%s(%d,%d) Error: %s',[CurFilename,CurRow,CurColumn,FLastMsg]);
 end;
 
 function TPascalScanner.DoFetchTextToken:TToken;