Browse Source

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

git-svn-id: trunk@37087 -
Mattias Gaertner 8 years ago
parent
commit
b5332501d7
1 changed files with 2 additions and 2 deletions
  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);
 procedure TPascalScanner.Error(MsgNumber: integer; const Msg: string);
 begin
 begin
   SetCurMsg(mtError,MsgNumber,Msg,[]);
   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;
 end;
 
 
 procedure TPascalScanner.Error(MsgNumber: integer; const Fmt: string;
 procedure TPascalScanner.Error(MsgNumber: integer; const Fmt: string;
   Args: array of const);
   Args: array of const);
 begin
 begin
   SetCurMsg(mtError,MsgNumber,Fmt,Args);
   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;
 end;
 
 
 function TPascalScanner.DoFetchTextToken:TToken;
 function TPascalScanner.DoFetchTextToken:TToken;