debug: wrap main() in pcall to show crash error before window closes

This commit is contained in:
MayaTheShy
2026-03-22 18:44:46 -04:00
parent bb139b4afd
commit 82d74a01b5

View File

@@ -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