From a51235005e290303ebd9d8cbbcef3cc667ca67b5 Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Wed, 26 Jun 2024 07:19:11 +0200 Subject: [PATCH] refactor: Add exception message to adapter exception (#2953) --- .../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 @@ private InputStream getDataFromEndpoint(String selectedFileName) throws AdapterE 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); } } }