Build/Utilities/fatal.lua
2022-01-19 11:48:44 +00:00

10 lines
250 B
Lua

function auFatal(...)
print("[!!!] Fatal Crash")
if (_auFatalMsg) then
print("Previous step: ", json.encode(_auFatalMsg))
end
print("Error Message: ", ...)
--print("Origin:")
print(debug.traceback())
os.exit(1)
end