aboutsummaryrefslogtreecommitdiff
path: root/error_handling.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-27 14:37:38 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-27 14:37:52 -0700
commitdfda34254c44f9f8aa16ad556a88ec275ec50a16 (patch)
tree7445b97cf215214c5b33608268d6b64981c5d1c7 /error_handling.lua
parent091ca13e8fabbc64aa7015c4eb44a9091e4c399f (diff)
More robust scanning
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