1
0
forked from osmarks/potatOS

log critical errors

This commit is contained in:
osmarks 2020-08-23 21:26:46 +01:00
parent e42cf53d9e
commit 783519d5eb

View File

@ -168,7 +168,7 @@ local function tick(proc, event)
proc.status = process.statuses.ERRORED proc.status = process.statuses.ERRORED
proc.error = res proc.error = res
if res ~= "Terminated" then -- programs terminating is normal, other errors not so much 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
end end
else else