You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/01/17 10:47:51 UTC

[incubator-plc4x] branch develop updated: - Found another place where tests fail on systems with DNS providers that return default IPs

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9db9e6b  - Found another place where tests fail on systems with DNS providers that return default IPs
9db9e6b is described below

commit 9db9e6b9df289c5a8357efa3d4ec0a914c92b309
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Jan 17 11:47:48 2019 +0100

    - Found another place where tests fail on systems with DNS providers that return default IPs
---
 .../drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
index 2ee2b0f..eec53f2 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
@@ -68,6 +68,8 @@ public class S7PlcDriver implements PlcDriver {
             return new S7PlcConnection(serverInetAddress, rack, slot, params);
         } catch (UnknownHostException e) {
             throw new PlcConnectionException("Error parsing address", e);
+        } catch (Exception e) {
+            throw new PlcConnectionException("Error connecting to host", e);
         }
     }