From 44b1e0c6f923bc45201be9010abab12cf16f7afa Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Mon, 22 Jul 2024 15:42:42 +0100 Subject: [PATCH] Print correct exception when hotspot dump fails --- .../velocitypowered/proxy/command/builtin/VelocityCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java index 7904a06a0..79ac41e74 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java @@ -379,7 +379,7 @@ public final class VelocityCommand { this.heapGenerator.invoke(hotspotMbean, file.toString(), true); } catch (Throwable e1) { // This should not occur - throw new RuntimeException(e); + throw new RuntimeException(e1); } src.sendMessage(Component.text("Heap dump saved to " + file, NamedTextColor.GREEN)); };