You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jl...@apache.org on 2026/02/11 15:52:54 UTC
(activemq) branch main updated: [AMQ-9859] IOHelper: Do not swallow thrown exception to lose stacktrace when move fails (esp on windows) (#1655)
This is an automated email from the ASF dual-hosted git repository.
jlmonteiro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/main by this push:
new 9949dce85c [AMQ-9859] IOHelper: Do not swallow thrown exception to lose stacktrace when move fails (esp on windows) (#1655)
9949dce85c is described below
commit 9949dce85cec15add4e3f0ce76ef9c0a54bd3914
Author: Matt Pavlovich <ma...@apache.org>
AuthorDate: Wed Feb 11 09:52:48 2026 -0600
[AMQ-9859] IOHelper: Do not swallow thrown exception to lose stacktrace when move fails (esp on windows) (#1655)
---
activemq-broker/src/main/java/org/apache/activemq/util/IOHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/activemq-broker/src/main/java/org/apache/activemq/util/IOHelper.java b/activemq-broker/src/main/java/org/apache/activemq/util/IOHelper.java
index 65a0cc9770..008140df1a 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/util/IOHelper.java
+++ b/activemq-broker/src/main/java/org/apache/activemq/util/IOHelper.java
@@ -197,7 +197,7 @@ public final class IOHelper {
try {
Files.move(sourcePath, targetDirPath.resolve(sourcePath.getFileName()), StandardCopyOption.REPLACE_EXISTING);
} catch (IOException ex) {
- throw new IOException("Failed to move " + src + " to " + targetDirectory + " - " + ex.getMessage());
+ throw new IOException("Failed to move " + src + " to " + targetDirectory + " - " + ex.getMessage(), ex);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact