From 5e98f35fa4c6d7c561cc38306f91d27137d61efd Mon Sep 17 00:00:00 2001 From: Philipp Zehnder Date: Tue, 25 Jun 2024 11:39:31 +0200 Subject: [PATCH] refactor: Add exception message to adapter exception --- .../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); } } }