mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 05:39:55 +02:00
* better error message in case of parser error
git-svn-id: trunk@7272 -
This commit is contained in:
parent
e074f9383c
commit
0e429065e8
@ -386,7 +386,14 @@ begin
|
|||||||
close(f);
|
close(f);
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
|
on e:EParserError do
|
||||||
|
begin
|
||||||
|
Writeln(StdErr,'', e.filename,'(',e.row,',',e.column,') Fatal: ',e.message);
|
||||||
|
close(f);
|
||||||
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
finally
|
finally
|
||||||
Engine.Free;
|
Engine.Free;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user