aboutsummaryrefslogtreecommitdiff
path: root/error_handling.moon
diff options
context:
space:
mode:
Diffstat (limited to 'error_handling.moon')
-rw-r--r--error_handling.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/error_handling.moon b/error_handling.moon
index d6a0881..ea126e8 100644
--- a/error_handling.moon
+++ b/error_handling.moon
@@ -106,6 +106,7 @@ enhance_error = (error_message)->
-- Globals and global compile rules:
scan = (t, is_lua_id)->
+ return unless t
for k,v in pairs(t)
if type(k) == 'string' and type(v) == 'function'
k = k\from_lua_id! unless is_lua_id