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

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new dd58caa  [MINOR] Throw exception along in IO NoClassDefFoundError
dd58caa is described below

commit dd58caac3d2258a6e5de7c55bcfdcf0b8ec027a2
Author: baunsgaard <[email protected]>
AuthorDate: Mon Nov 15 19:17:24 2021 +0100

    [MINOR] Throw exception along in IO NoClassDefFoundError
    
    This commit adds the exception of the class missing in the IO exception.
    I had issues finding the library missing because this exception was
    caught but not passing on the underlying exception
---
 src/main/java/org/apache/sysds/runtime/io/IOUtilFunctions.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sysds/runtime/io/IOUtilFunctions.java 
b/src/main/java/org/apache/sysds/runtime/io/IOUtilFunctions.java
index 1a366c6..9ad3f0a 100644
--- a/src/main/java/org/apache/sysds/runtime/io/IOUtilFunctions.java
+++ b/src/main/java/org/apache/sysds/runtime/io/IOUtilFunctions.java
@@ -93,7 +93,7 @@ public class IOUtilFunctions
                try{
                        return FileSystem.get(conf);
                } catch(NoClassDefFoundError err) {
-                       throw new IOException(err.getMessage());
+                       throw new IOException(err.getMessage(), err);
                }
        }
        
@@ -101,7 +101,7 @@ public class IOUtilFunctions
                try {
                        return FileSystem.get(fname.toUri(), conf);
                } catch(NoClassDefFoundError err) {
-                       throw new IOException(err.getMessage());
+                       throw new IOException(err.getMessage(), err);
                }
        }
        

Reply via email to