log critical errors

This commit is contained in:
osmarks 2020-08-23 21:26:46 +01:00
parent e42cf53d9e
commit 783519d5eb
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ local function tick(proc, event)
proc.status = process.statuses.ERRORED
proc.error = res
if res ~= "Terminated" then -- programs terminating is normal, other errors not so much
BSOD(stringformat("Process %s has crashed!\nError: %s", tostring(proc.ID) or proc.name, tostring(res)))
BSOD(stringformat("Process %s has crashed!\nError: %s", proc.name or tostring(proc.ID), tostring(res)))
end
end
else