From 4fbe3527e8fc24bd37f349fbfe907ffd68367593 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Thu, 24 Feb 2022 10:58:04 +1100 Subject: [PATCH] fix: parameter validation function cant print arrays --- .../core-scripts/esc/types/esc_command_argument_descriptor.gd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc/types/esc_command_argument_descriptor.gd b/addons/escoria-core/game/core-scripts/esc/types/esc_command_argument_descriptor.gd index 5c8151c5..c48512b9 100644 --- a/addons/escoria-core/game/core-scripts/esc/types/esc_command_argument_descriptor.gd +++ b/addons/escoria-core/game/core-scripts/esc/types/esc_command_argument_descriptor.gd @@ -68,9 +68,7 @@ func validate(command: String, arguments: Array) -> bool: escoria.logger.report_errors( "Invalid command arguments for command %s" % command, [ - "Arguments didn't match minimum size %d: %s" % - self.min_args, - arguments + "Arguments didn't match minimum size {num}: {args}".format({"num":self.min_args,"args":arguments}) ] )