Improve error messages

This commit is contained in:
filoghost 2020-10-17 19:15:14 +02:00
parent 29da6ab129
commit adac8414c5
2 changed files with 3 additions and 3 deletions

View File

@ -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.");
}

View File

@ -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]";
}
});
}