This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 574c534b Fix using the wrong exception for "cause" (#316)
574c534b is described below

commit 574c534b4221dfb9b6d5f0ad8383b3d4bfce9a9b
Author: Boris Petrov <boris_pet...@live.com>
AuthorDate: Thu Oct 13 14:57:54 2022 +0300

    Fix using the wrong exception for "cause" (#316)
---
 .../main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
index 38005503..0dbc2ce2 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
@@ -1214,7 +1214,7 @@ public abstract class AbstractFileObject<AFS extends 
AbstractFileSystem> impleme
                     if (e instanceof FileSystemException) {
                         throw (FileSystemException) e;
                     }
-                    throw new FileSystemException("vfs.provider/read.error", 
fileName, exc);
+                    throw new FileSystemException("vfs.provider/read.error", 
fileName, e);
                 }
             }
             throw exc;

Reply via email to