Skip to content

Commit 106b6a1

Browse files
author
Sandy W
committed
changed Unknown Host message
1 parent 65a4675 commit 106b6a1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

client/Client.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* @author Ikonija Bogojevic
66
* @author Sandra Weber
77
* @author Miguel Perez
8+
*
9+
* This is the main Client class, which spawns ClientThreads which connect to the server. This class
10+
* includes methods for obtaining the user's commands and validating them.
811
*/
912
public class Client {
1013
private static String hostName;

client/ClientThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void run() {
8181

8282
}
8383
catch (UnknownHostException e) {
84-
System.err.println("Unknown host: " + e);
84+
System.err.println("Unknown host: " + hostName);
8585
System.exit(1);
8686
}
8787
catch (IOException e) {

0 commit comments

Comments
 (0)