Print correct exception when hotspot dump fails
This commit is contained in:
@@ -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));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user