From ffc982ba5504c9b83c05f8a22d92406e163601c9 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Thu, 9 Jan 2025 21:23:43 -0600 Subject: [PATCH] Fix a couple error messages --- .../distanthorizons/core/pooling/PhantomArrayListParent.java | 3 +-- .../distanthorizons/core/pooling/PhantomArrayListPool.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListParent.java b/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListParent.java index 7eee7c4c0..d4e0bd4d4 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListParent.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListParent.java @@ -67,10 +67,9 @@ public abstract class PhantomArrayListParent implements AutoCloseable } catch (Exception e) { - LOGGER.error("", e); + LOGGER.error("Unable to close Phantom Array", e); } } - } diff --git a/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListPool.java b/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListPool.java index 4479aebe6..0f0d7728a 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListPool.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/pooling/PhantomArrayListPool.java @@ -409,7 +409,7 @@ public class PhantomArrayListPool { if (checkout == null) { - throw new IllegalArgumentException("Null phantom checkout, memory leak in progress..."); + throw new IllegalArgumentException("Null phantom checkout, object is being closed multiple times."); }