Skip to content

Commit 888a19b

Browse files
committed
Added additional information to serial errors on Linux.
1 parent c23fe5e commit 888a19b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modbusmechanic/PacketFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ public void handleModbusException(Exception e)
997997
{
998998
if (e.getMessage().contains("purejavacomm.PortInUseException"))
999999
{
1000-
JOptionPane.showMessageDialog(this, "Port in use or insufficient permissions. If the port is not in use running as administrator or root can elevate permissions.", "Serial port error", JOptionPane.ERROR_MESSAGE);
1000+
JOptionPane.showMessageDialog(this, "Port in use or insufficient permissions. If the port is not in use running as administrator or root can elevate permissions.\nOn Linux adding the user to the dialout group may elevate permissions.", "Serial port error", JOptionPane.ERROR_MESSAGE);
10011001
}
10021002
else
10031003
{

src/modbusmechanic/RTUScannerThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void run()
7373
{
7474
if (e instanceof purejavacomm.PortInUseException)
7575
{
76-
JOptionPane.showMessageDialog(null, "Port in use or insufficient permissions. If the port is not in use running as administrator or root can elevate permissions.", "Serial port error", JOptionPane.ERROR_MESSAGE);
76+
JOptionPane.showMessageDialog(null, "Port in use or insufficient permissions. If the port is not in use running as administrator or root can elevate permissions.\nOn Linux adding the user to the dialout group may elevate permissions.", "Serial port error", JOptionPane.ERROR_MESSAGE);
7777
}
7878
if (ModbusMechanic.debug)
7979
{

0 commit comments

Comments
 (0)