diff --git a/data/ai/lua/ai_helper.lua b/data/ai/lua/ai_helper.lua index 7dfa7cb1f82..3045ced8f61 100644 --- a/data/ai/lua/ai_helper.lua +++ b/data/ai/lua/ai_helper.lua @@ -169,8 +169,7 @@ end function ai_helper.checked_action_error(action, error_code) if wesnoth.game_config.debug then - wesnoth.message('Lua AI error', action .. ' could not be executed. Error code: ' .. error_code) - error() + error(action .. ' could not be executed. Error code: ' .. error_code) end end