Skip to content

Commit 7dab767

Browse files
Pradeep Kunchalapradeep85841
authored andcommitted
Improve exception context in BrokerService preDestroy
1 parent e4d0149 commit 7dab767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ private void preDestroy () {
788788
try {
789789
stop();
790790
} catch (Exception ex) {
791-
throw new RuntimeException();
791+
throw new RuntimeException("Exception during broker preDestroy cleanup: " + getBrokerName(), ex);
792792
}
793793
}
794794

0 commit comments

Comments
 (0)