From 7fe2d13544321e982d66a33d9e63d99045b90b84 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 10 Sep 2020 13:01:40 +0800 Subject: [PATCH] Fix exception message --- .../command/description/CommandArgumentParserBuiltins.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/description/CommandArgumentParserBuiltins.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/description/CommandArgumentParserBuiltins.kt index e43b9a190..b78fc129c 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/description/CommandArgumentParserBuiltins.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/description/CommandArgumentParserBuiltins.kt @@ -321,7 +321,7 @@ public object PermissionIdArgumentParser : CommandArgumentParser { public object PermissibleIdentifierArgumentParser : CommandArgumentParser { override fun parse(raw: String, sender: CommandSender): PermissibleIdentifier { return kotlin.runCatching { AbstractPermissibleIdentifier.parseFromString(raw) }.getOrElse { - illegalArgument("无法解析 $raw 为 PermissionId") + illegalArgument("无法解析 $raw 为 PermissibleIdentifier") } }