foxygit / fake-08-xbox360 Log in
commit 6d54713e57214247634500a672c91270a2a53d6a
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Jan 6 18:21:51 2026 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Jan 6 18:21:51 2026 -0700

    better error logging
---
 source/p8GlobalLuaFunctions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index 1179f3f..670862e 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -582,7 +582,7 @@ function __z8_run_cart(cart_code)
         if not code then
             color(14) print('syntax error')
             color(6) print(ex)
-            error()
+            error(ex or "syntax error")
         end

         -- Mark that a cart is now running (used for pause menu logic)