Fix exception message

This commit is contained in:
Him188 2020-09-10 13:01:40 +08:00
parent b242fc4eb8
commit 7fe2d13544

View File

@ -321,7 +321,7 @@ public object PermissionIdArgumentParser : CommandArgumentParser<PermissionId> {
public object PermissibleIdentifierArgumentParser : CommandArgumentParser<PermissibleIdentifier> {
override fun parse(raw: String, sender: CommandSender): PermissibleIdentifier {
return kotlin.runCatching { AbstractPermissibleIdentifier.parseFromString(raw) }.getOrElse {
illegalArgument("无法解析 $raw 为 PermissionId")
illegalArgument("无法解析 $raw 为 PermissibleIdentifier")
}
}