mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
Fix exception message
This commit is contained in:
parent
b242fc4eb8
commit
7fe2d13544
@ -321,7 +321,7 @@ public object PermissionIdArgumentParser : CommandArgumentParser<PermissionId> {
|
|||||||
public object PermissibleIdentifierArgumentParser : CommandArgumentParser<PermissibleIdentifier> {
|
public object PermissibleIdentifierArgumentParser : CommandArgumentParser<PermissibleIdentifier> {
|
||||||
override fun parse(raw: String, sender: CommandSender): PermissibleIdentifier {
|
override fun parse(raw: String, sender: CommandSender): PermissibleIdentifier {
|
||||||
return kotlin.runCatching { AbstractPermissibleIdentifier.parseFromString(raw) }.getOrElse {
|
return kotlin.runCatching { AbstractPermissibleIdentifier.parseFromString(raw) }.getOrElse {
|
||||||
illegalArgument("无法解析 $raw 为 PermissionId")
|
illegalArgument("无法解析 $raw 为 PermissibleIdentifier")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user