fix: parameter validation function cant print arrays

This commit is contained in:
Balloonpopper authored and Julian Murgia committed 2022-03-03 18:41:52 +01:00
1 parent e236784534
commit 4fbe3527e8
1 file changed
+1 -3
@@ -68,9 +68,7 @@ func validate(command: String, arguments: Array) -> bool:
escoria.logger.report_errors( escoria.logger.report_errors(
"Invalid command arguments for command %s" % command, "Invalid command arguments for command %s" % command,
[ [
"Arguments didn't match minimum size %d: %s" % "Arguments didn't match minimum size {num}: {args}".format({"num":self.min_args,"args":arguments})
self.min_args,
arguments
] ]
) )