Skip to content

Commit

Permalink
fix: fatal errors
Browse files Browse the repository at this point in the history
fatal errors with wasplib no longer loop until out of memory if they happen during SRL.Setup
  • Loading branch information
Torwent committed Jul 24, 2024
1 parent cea7649 commit f4bff8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/base.simba
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ end;

procedure TSRLBaseRecord.Fatal(Text: String); constref; override;
begin
if not SRL.IsSetup then
inherited;

Text := SRL.TimeStamp + ':[' + Name + ']:[Fatal]: ' + Text;
WriteLn(Text);
Self.AddToLog(Text);
Expand Down

0 comments on commit f4bff8b

Please sign in to comment.