summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhoenix616 <mail@moep.tv>2018-09-13 21:24:09 +0100
committerPhoenix616 <mail@moep.tv>2018-09-13 21:24:09 +0100
commita9ceda756670000e445674573e9914e9994c0f4c (patch)
tree10ac97987c86f7d8b05dd340459903576c819c5e /src
parent381fba2cd0c6c30b327c1c5edb1920427b4dd94f (diff)
downloadbukkit-a9ceda756670000e445674573e9914e9994c0f4c.tar
bukkit-a9ceda756670000e445674573e9914e9994c0f4c.tar.gz
bukkit-a9ceda756670000e445674573e9914e9994c0f4c.tar.lz
bukkit-a9ceda756670000e445674573e9914e9994c0f4c.tar.xz
bukkit-a9ceda756670000e445674573e9914e9994c0f4c.zip
Include the plugin channel name in the exception message
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/plugin/messaging/StandardMessenger.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/plugin/messaging/StandardMessenger.java b/src/main/java/org/bukkit/plugin/messaging/StandardMessenger.java
index ddb9f769..55a0360e 100644
--- a/src/main/java/org/bukkit/plugin/messaging/StandardMessenger.java
+++ b/src/main/java/org/bukkit/plugin/messaging/StandardMessenger.java
@@ -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;
}