Added: ErrorType.toString

This commit is contained in:
rubenpirreram
2026-05-26 19:26:01 +02:00
parent 55ce0c1d0a
commit 1aff264cc5
16 changed files with 38 additions and 19 deletions
@@ -135,7 +135,7 @@ public class GUI extends Application implements IView {
}
@Override
public void showError(ErrorType error) {
public void showError(ErrorType error,String message) {
Platform.runLater(() -> {
synchronized (miniModel) {
controllerMain.isError = true;
@@ -11,6 +11,6 @@ public interface IView {
void showMessage(String message);
public void showError(ErrorType error);
public void showError(ErrorType error,String message);
}
@@ -234,10 +234,10 @@ public class TUI implements IView {
*
* @param error the error message to display
*/
public void showError(ErrorType error) {
public void showError(ErrorType error,String message) {
clearTerminal();
render();
System.out.println(error);
System.out.println(message);
}
/**