Added: ErrorType.toString
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user