Changed output of errors from out to err.
This commit is contained in:
@@ -38,7 +38,7 @@ public class NetworkController {
|
||||
socket.setReuseAddress(true);
|
||||
socket.bind(new InetSocketAddress(ipAddress, port));
|
||||
} catch (Exception e) {
|
||||
System.out.println("Port: " + port + " is closed or not reachable on ip: " + ipAddress);
|
||||
System.err.println("Port: " + port + " is closed or not reachable on ip: " + ipAddress);
|
||||
if (socket != null) {
|
||||
socket.close();
|
||||
socket = null;
|
||||
|
||||
@@ -42,11 +42,11 @@ public class SenderThread extends Thread implements Terminatable {
|
||||
ds.send(dp);
|
||||
}
|
||||
} catch (UnknownHostException e) {
|
||||
System.out.println("Error, host is unknown or unreachable.");
|
||||
System.err.println("Error, host is unknown or unreachable.");
|
||||
} catch (IOException e) {
|
||||
System.out.println("Error, wasn't able to send data, because of problem with socket.");
|
||||
System.err.println("Error, wasn't able to send data, because of problem with socket.");
|
||||
} catch (InterruptedException e) {
|
||||
System.out.println("Error, sending queue was interrupted. Terminating (this) sending thread..");
|
||||
System.err.println("Error, sending queue was interrupted. Terminating (this) sending thread..");
|
||||
this.terminate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user