Skip to content

Commit 9ee1359

Browse files
author
Felix Exner
committed
Improve popup output by adding the exception's message
1 parent 81f5e77 commit 9ee1359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/fzi/externalcontrol/impl/RequestProgram.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public String sendCommand(String command) {
8080
}
8181
socket.close();
8282
} catch (IOException e) {
83-
result = "popup(\"The connection to the remote PC could not be established. \","
84-
+ "\"connection refused\", False, True, blocking=True)\n"
85-
+ "sync()";
83+
result = String.format("popup(\"The connection to the remote PC could not be established. Reason: %s\","
84+
+ "\"Receive program failed\", False, True, blocking=True)\n"
85+
+ "sync()", e.getMessage());
8686
}
8787
return result;
8888
}

0 commit comments

Comments
 (0)