From 4e146ae78ca137f3056668db55bd52e82af23ab7 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Thu, 29 Dec 2022 12:37:04 +1100 Subject: [PATCH] Fix: wrong argument passed in turn_to error message --- .../escoria-core/game/core-scripts/esc/commands/turn_to.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc/commands/turn_to.gd b/addons/escoria-core/game/core-scripts/esc/commands/turn_to.gd index 7c3348eb..4fe4c120 100644 --- a/addons/escoria-core/game/core-scripts/esc/commands/turn_to.gd +++ b/addons/escoria-core/game/core-scripts/esc/commands/turn_to.gd @@ -47,15 +47,15 @@ func validate(arguments: Array): if not escoria.object_manager.has(arguments[0]): escoria.logger.error( self, - "[%s]: The object to turn with global id %s was not found." + "[%s]: Cannot turn \"%s\". Object not found." % [get_command_name(), arguments[0]] ) return false if not escoria.object_manager.has(arguments[1]): escoria.logger.error( self, - "[%s]: The object to turn towards with global id %s was not found." - % [get_command_name(), arguments[0]] + "[%s]: Cannot turn \"%s\" towards \"%s\". \"%s\" was not found." + % [get_command_name(), arguments[0], arguments[1] , arguments[1]] ) return false return true