debug: wrap main() in pcall to show crash error before window closes
This commit is contained in:
@@ -685,4 +685,9 @@ local function main()
|
||||
)
|
||||
end
|
||||
|
||||
main()
|
||||
local ok, err = pcall(main)
|
||||
if not ok then
|
||||
printError(tostring(err))
|
||||
print("Press any key to exit...")
|
||||
os.pullEvent("key")
|
||||
end
|
||||
Reference in New Issue
Block a user