fix: parameter validation function cant print arrays

This commit is contained in:
Balloonpopper
2022-02-24 10:58:04 +11:00
committed by Julian Murgia
parent e236784534
commit 4fbe3527e8

View File

@@ -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})
]
)