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

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new a51235005e refactor: Add exception message to adapter exception (#2953)
a51235005e is described below

commit a51235005e290303ebd9d8cbbcef3cc667ca67b5
Author: Philipp Zehnder <[email protected]>
AuthorDate: Wed Jun 26 07:19:11 2024 +0200

    refactor: Add exception message to adapter exception (#2953)
---
 .../streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
 
b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
index dd0647c6d5..6ca6217553 100644
--- 
a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
+++ 
b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/protocol/stream/FileReplayAdapter.java
@@ -313,7 +313,7 @@ public class FileReplayAdapter implements 
StreamPipesAdapter {
     try {
       return FileProtocolUtils.getFileInputStream(selectedFileName);
     } catch (IOException e) {
-      throw new AdapterException("Could not find file: " + selectedFileName);
+      throw new AdapterException("Could not find file: " + selectedFileName, 
e);
     }
   }
 }

Reply via email to