mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-25 19:45:44 +01:00
Improve error messages
This commit is contained in:
parent
29da6ab129
commit
adac8414c5
@ -102,7 +102,7 @@ public class InventoryListener implements Listener {
|
||||
menuDescription = "a menu created by the plugin \"" + menu.getPlugin().getName() + "\"";
|
||||
}
|
||||
|
||||
Log.severe("Encountered exception while handling a click inside " + menuDescription, throwable);
|
||||
Log.severe("Encountered an exception while handling a click inside " + menuDescription, throwable);
|
||||
clicker.sendMessage(ChatColor.RED + "An internal error occurred when you clicked on the item.");
|
||||
}
|
||||
|
||||
|
@ -75,9 +75,9 @@ public class PlaceholderManager {
|
||||
try {
|
||||
return placeholder.getReplacer().getReplacement(player, placeholderMatch.getArgument());
|
||||
} catch (Throwable t) {
|
||||
Log.severe("Encountered exception while replacing the placeholder \"" + placeholderMatch
|
||||
Log.severe("Encountered an exception while replacing the placeholder \"" + placeholderMatch.getIdentifier()
|
||||
+ "\" registered by the plugin \"" + placeholder.getPlugin().getName() + "\"", t);
|
||||
return "[ERROR]";
|
||||
return "[PLACEHOLDER ERROR]";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user