From 0a625627c929028f10d39cafd661d90e9920845b Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Thu, 26 Sep 2024 01:07:57 -0400 Subject: [PATCH] More explicit RuntimeException message Co-authored-by: Konicai <71294714+Konicai@users.noreply.github.com> --- .../main/java/org/geysermc/geyser/text/AsteriskSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/text/AsteriskSerializer.java b/core/src/main/java/org/geysermc/geyser/text/AsteriskSerializer.java index b34db2b99..ec79fb906 100644 --- a/core/src/main/java/org/geysermc/geyser/text/AsteriskSerializer.java +++ b/core/src/main/java/org/geysermc/geyser/text/AsteriskSerializer.java @@ -79,7 +79,7 @@ public class AsteriskSerializer implements JsonSerializer { try { destination.set("***"); } catch (SerializationException e) { - throw new RuntimeException(e); // Error over silently printing an IP address. + throw new RuntimeException("Unable to censor IP address", e); // Error over silently printing an IP address. } };