aboutsummaryrefslogtreecommitdiff
path: root/error_handling.lua
diff options
context:
space:
mode:
Diffstat (limited to 'error_handling.lua')
-rw-r--r--error_handling.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/error_handling.lua b/error_handling.lua
index 6774e55..605a013 100644
--- a/error_handling.lua
+++ b/error_handling.lua
@@ -133,6 +133,9 @@ enhance_error = function(error_message)
end
local scan
scan = function(t, is_lua_id)
+ if not (t) then
+ return
+ end
for k, v in pairs(t) do
if type(k) == 'string' and type(v) == 'function' then
if not (is_lua_id) then