From bd1b45e814c3573bf90da25b27dd85326f58798f Mon Sep 17 00:00:00 2001 From: mattsc Date: Fri, 21 Oct 2016 16:32:55 -0700 Subject: [PATCH] ai_helper checked actions: move error string into call to error() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … rather than making it a separate message. --- data/ai/lua/ai_helper.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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