Skip to content

Commit

Permalink
Debug log message when a NumberFormatException is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Jan 20, 2023
1 parent d1ed8f0 commit 83e5b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/us/ajg0702/leaderboards/cache/Cache.java
Expand Up @@ -419,7 +419,7 @@ public void updateStat(String board, OfflinePlayer player) {
.replaceAll(",", "");
output = plugin.getPlaceholderFormatter().toDouble(outputraw, board);
} catch(NumberFormatException e) {
if(debug) Debug.info("Placeholder %"+board+"% for "+player.getName()+" returned a non-number! Ignoring it.");
if(debug) Debug.info("Placeholder %"+board+"% for "+player.getName()+" returned a non-number! Ignoring it. Message: " + e);
return;
} catch(Exception e) {
plugin.getLogger().log(Level.WARNING, "Placeholder %"+board+"% for player "+player.getName()+" threw an error:", e);
Expand Down

0 comments on commit 83e5b50

Please sign in to comment.