FIX: TUI SHOW ERROR

This commit is contained in:
rubenpirreram
2026-05-04 15:21:33 +02:00
parent 5d49199e4d
commit 5418d70cf8
3 changed files with 4 additions and 4 deletions
@@ -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();