Build/Utilities/fatal.lua

10 lines
250 B
Lua
Raw Normal View History

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