mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
Include the plugin channel name in the exception message
By: Phoenix616 <mail@moep.tv>
This commit is contained in:
parent
5f1c3987ab
commit
88399f1f47
1 changed files with 2 additions and 2 deletions
|
@ -471,11 +471,11 @@ public class StandardMessenger implements Messenger {
|
|||
throw new ChannelNameTooLongException(channel);
|
||||
}
|
||||
if (channel.indexOf(':') == -1) {
|
||||
throw new IllegalArgumentException("Channel must contain : separator");
|
||||
throw new IllegalArgumentException("Channel must contain : separator (attempted to use " + channel + ")");
|
||||
}
|
||||
if (!channel.toLowerCase(Locale.ROOT).equals(channel)) {
|
||||
// TODO: use NamespacedKey validation here
|
||||
throw new IllegalArgumentException("Channel must be entirely lowercase");
|
||||
throw new IllegalArgumentException("Channel must be entirely lowercase (attempted to use " + channel + ")");
|
||||
}
|
||||
return channel;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue