From dfda34254c44f9f8aa16ad556a88ec275ec50a16 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 14:37:38 -0700 Subject: More robust scanning --- error_handling.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'error_handling.lua') 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 -- cgit v1.2.3