aboutsummaryrefslogtreecommitdiff
path: root/error_handling.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-23 15:28:02 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-23 15:28:24 -0800
commit7a64bdb40faba8ffd5141c1fda6091d45843e2e4 (patch)
tree5917d39f892ac4380fe6be932f78265c018b4df1 /error_handling.lua
parentc59401c8ffb1d99bfeb72ba249865e6ef0d95845 (diff)
Made the 'attempt to call an undefined global' error message improving
more aggressive
Diffstat (limited to 'error_handling.lua')
-rw-r--r--error_handling.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/error_handling.lua b/error_handling.lua
index 10882fa..fd6572e 100644
--- a/error_handling.lua
+++ b/error_handling.lua
@@ -71,9 +71,7 @@ enhance_error = function(error_message, start_fn, stop_fn)
do
local fn = error_message:match("attempt to call a nil value %(global '(.*)'%)")
if fn then
- if fn:match("x[0-9A-F][0-9A-F]") then
- error_message = "The action '" .. tostring(fn:from_lua_id()) .. "' is not defined."
- end
+ error_message = "The action '" .. tostring(fn:from_lua_id()) .. "' is not defined."
end
end
local level = 2