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); } } }