steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
276 stars 110 forks source link

ModbusTCPTransaction: Error message is not shown in a specific case #100

Closed simonsample closed 5 years ago

simonsample commented 5 years ago

ModbusTCPTransaction.java:134:

throw new ModbusIOException("Connection failed for %s:%d", connection.getAddress().toString(), connection.getPort(), ex.getMessage());

--> ex.getMessage() is swallowed since there is a format symbol missing in the format-string.

steveohara commented 5 years ago

Fixed in 2.5.7