From da32c90eed36ff8281ad0d2257c31efd89661ab3 Mon Sep 17 00:00:00 2001 From: ZRnQ <55307932+Under-estimate@users.noreply.github.com> Date: Thu, 11 Mar 2021 22:48:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20CommandSender=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E6=BB=A1=E8=B6=B3=E8=A6=81=E6=B1=82=E6=97=B6=E5=BA=94?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20"=E9=9C=80=E8=A6=81=E7=94=B1xxx=E6=89=A7?= =?UTF-8?q?=E8=A1=8C"=20=E8=80=8C=E4=B8=8D=E6=98=AF=20"=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF"=20=20(#309)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/mirai-console-terminal/src/ConsoleThread.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/mirai-console-terminal/src/ConsoleThread.kt b/frontend/mirai-console-terminal/src/ConsoleThread.kt index 3d82ac5cb..98dd4ebea 100644 --- a/frontend/mirai-console-terminal/src/ConsoleThread.kt +++ b/frontend/mirai-console-terminal/src/ConsoleThread.kt @@ -150,8 +150,8 @@ internal fun UnmatchedCommandSignature.render(command: Command): String { @OptIn(ExperimentalCommandDescriptors::class) internal fun FailureReason.render(): String { return when (this) { - is FailureReason.InapplicableArgument -> "参数类型错误" is FailureReason.InapplicableReceiverArgument -> "需要由 ${this.parameter.renderAsName()} 执行" + is FailureReason.InapplicableArgument -> "参数类型错误" is FailureReason.TooManyArguments -> "参数过多" is FailureReason.NotEnoughArguments -> "参数不足" is FailureReason.ResolutionAmbiguity -> "调用歧义"