Skip to content

Commit

Permalink
Print correct exception when hotspot dump fails
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicboy committed Jul 22, 2024
1 parent a447625 commit 44b1e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public int run(final CommandContext<CommandSource> context) throws CommandSyntax
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));
};
Expand Down

0 comments on commit 44b1e0c

Please sign in to comment.