FIX: TUI SHOW ERROR
This commit is contained in:
@@ -53,7 +53,7 @@ public class ClientCallbackImpl extends UnicastRemoteObject implements IClientCa
|
||||
@Override
|
||||
public void onAction(NetworkEvent event) throws RemoteException {
|
||||
if(event.getIsError()) {
|
||||
System.out.println(event.toString());
|
||||
clientController.view.showError(event.toString());
|
||||
} else {
|
||||
event.apply(clientController.localController);
|
||||
clientController.view.render();
|
||||
|
||||
@@ -97,7 +97,7 @@ public class TCPClient implements IClient {
|
||||
|
||||
if (read instanceof NetworkEvent event) { //TODO: avoid instanceof
|
||||
if (event.getIsError()) {
|
||||
System.out.println(event);
|
||||
controller.view.showError(event.toString());
|
||||
} else {
|
||||
event.apply(controller.localController);
|
||||
controller.view.render();
|
||||
|
||||
Reference in New Issue
Block a user