You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/01/31 12:47:50 UTC

[hop] branch master updated: HOP-1857 Data set: Show error if filename or path is wrong

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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ea3860  HOP-1857 Data set: Show error if filename or path is wrong
     new 88c58b7  Merge pull request #1300 from gvdutra/HOP-1857
6ea3860 is described below

commit 6ea3860d898f37715fddc58af278fe573c4f5391
Author: Gabriel Dutra <gv...@gmail.com>
AuthorDate: Wed Jan 26 22:28:45 2022 -0800

    HOP-1857 Data set: Show error if filename or path is wrong
---
 .../testing/src/main/java/org/apache/hop/testing/DataSetCsvUtil.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/plugins/misc/testing/src/main/java/org/apache/hop/testing/DataSetCsvUtil.java b/plugins/misc/testing/src/main/java/org/apache/hop/testing/DataSetCsvUtil.java
index 40bde51..4a6d50a 100644
--- a/plugins/misc/testing/src/main/java/org/apache/hop/testing/DataSetCsvUtil.java
+++ b/plugins/misc/testing/src/main/java/org/apache/hop/testing/DataSetCsvUtil.java
@@ -128,9 +128,7 @@ public class DataSetCsvUtil {
 
       FileObject file = HopVfs.getFileObject(dataSetFilename);
       if (!file.exists()) {
-        // This is fine.  We haven't put rows in yet.
-        //
-        return rows;
+        throw new HopException("File " + dataSetFilename + " doesn't exist!");
       }
 
       List<String> sortFields = location.getFieldOrder();