aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--error_handling.lua4
-rw-r--r--error_handling.moon3
2 files changed, 2 insertions, 5 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
diff --git a/error_handling.moon b/error_handling.moon
index 23cb5ea..18ae4ef 100644
--- a/error_handling.moon
+++ b/error_handling.moon
@@ -50,8 +50,7 @@ enhance_error = (error_message, start_fn, stop_fn)->
unless error_message and error_message\match("\x1b")
error_message or= ""
if fn = error_message\match("attempt to call a nil value %(global '(.*)'%)")
- if fn\match "x[0-9A-F][0-9A-F]"
- error_message = "The action '#{fn\from_lua_id!}' is not defined."
+ error_message = "The action '#{fn\from_lua_id!}' is not defined."
level = 2
while true
-- TODO: reduce duplicate code