From 82d74a01b5dab5b50e28c716924ebd223abac312 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 18:44:46 -0400 Subject: [PATCH] debug: wrap main() in pcall to show crash error before window closes --- inventoryManager.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inventoryManager.lua b/inventoryManager.lua index f199da9..67b227c 100644 --- a/inventoryManager.lua +++ b/inventoryManager.lua @@ -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 \ No newline at end of file