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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to