Skip to content

Commit

Permalink
Backport from satania-buddy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagamma committed May 25, 2023
1 parent 6701cdb commit 86c1ec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ScriptEngine.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3902,9 +3902,9 @@ procedure TScriptEngine.Lex(const IsIncluded: Boolean = False);
ErrorLn := Ln;
ErrorCol := Col;
if N = '' then
raise Exception.CreateFmt('[%d,%d] %s', [Ln, Col, S])
raise Exception.CreateFmt('[%d:%d] %s', [Ln, Col, S])
else
raise Exception.CreateFmt('(%s) [%d,%d] %s', [N, Ln, Col, S]);
raise Exception.CreateFmt('[%s:%d:%d] %s', [N, Ln, Col, S]);
end;

var
Expand Down Expand Up @@ -4359,7 +4359,7 @@ procedure TScriptEngine.Parse;
ErrorLn := Token.Ln;
ErrorCol := Token.Col;
if Token.BelongedFileName = '' then
raise Exception.CreateFmt('[%d,%d] %s', [Token.Ln, Token.Col, S])
raise Exception.CreateFmt('[%d:%d] %s', [Token.Ln, Token.Col, S])
else
raise Exception.CreateFmt('[%s:%d:%d] %s', [Token.BelongedFileName, Token.Ln, Token.Col, S]);
end;
Expand Down

0 comments on commit 86c1ec3

Please sign in to comment.