mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-30 23:00:18 -05:00
Directives: WARNING directive change.
This commit is contained in:
parent
45b215efd9
commit
207fe1048b
@ -495,15 +495,15 @@ begin
|
||||
if (DirectiveArgs <> '') then
|
||||
begin
|
||||
Result := True;
|
||||
if FileName = '' then
|
||||
{if FileName = '' then
|
||||
psWriteln(format('Error: In %s: at row: %d, col: %d, pos %d: %s',
|
||||
['Main script', Parser.row, Parser.col,
|
||||
Parser.pos, DirectiveArgs]))
|
||||
else
|
||||
psWriteln(format('Error: In file %s: at row: %d, col: %d, pos %d: %s',
|
||||
[FileName, Parser.row, Parser.col,
|
||||
Parser.pos, DirectiveArgs]));
|
||||
HandleError(Parser.Row + 1, Parser.Col, Parser.Pos, 'Error at ' + DirectiveArgs, errCompile, FileName);
|
||||
Parser.pos, DirectiveArgs])); }
|
||||
HandleError(Parser.Row + 1, Parser.Col, Parser.Pos, 'Error: ' + DirectiveArgs, errCompile, FileName);
|
||||
raise EPSPreProcessor.Create('ERROR directive found');
|
||||
end;
|
||||
end else
|
||||
|
Loading…
Reference in New Issue
Block a user