3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Print correct exception when hotspot dump fails

Dieser Commit ist enthalten in:
Shane Freeder 2024-07-22 15:42:42 +01:00
Ursprung a4476253ab
Commit 44b1e0c6f9
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A3F61EA5A085289C

Datei anzeigen

@ -379,7 +379,7 @@ public final class VelocityCommand {
this.heapGenerator.invoke(hotspotMbean, file.toString(), true); this.heapGenerator.invoke(hotspotMbean, file.toString(), true);
} catch (Throwable e1) { } catch (Throwable e1) {
// This should not occur // This should not occur
throw new RuntimeException(e); throw new RuntimeException(e1);
} }
src.sendMessage(Component.text("Heap dump saved to " + file, NamedTextColor.GREEN)); src.sendMessage(Component.text("Heap dump saved to " + file, NamedTextColor.GREEN));
}; };