mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 16:36:58 -04:00
replace localized exception messages with english ones
This commit is contained in:
parent
2f84f9b75a
commit
06b4647008
@ -77,7 +77,7 @@ public final class Minosoft {
|
|||||||
// Do not translate this, translations might fail to load...
|
// Do not translate this, translations might fail to load...
|
||||||
dialog.setTitle("Critical Error");
|
dialog.setTitle("Critical Error");
|
||||||
dialog.setHeaderText("An error occurred while starting Minosoft");
|
dialog.setHeaderText("An error occurred while starting Minosoft");
|
||||||
TextArea text = new TextArea(exception.getClass().getCanonicalName() + ": " + exception.getLocalizedMessage());
|
TextArea text = new TextArea(exception.getClass().getCanonicalName() + ": " + exception.getMessage());
|
||||||
text.setEditable(false);
|
text.setEditable(false);
|
||||||
text.setWrapText(true);
|
text.setWrapText(true);
|
||||||
dialog.getDialogPane().setContent(text);
|
dialog.getDialogPane().setContent(text);
|
||||||
|
@ -194,7 +194,7 @@ public class ServerListCell extends ListCell<Server> implements Initializable {
|
|||||||
version.setStyle("-fx-text-fill: red;");
|
version.setStyle("-fx-text-fill: red;");
|
||||||
optionsConnect.setDisable(true);
|
optionsConnect.setDisable(true);
|
||||||
canConnect = false;
|
canConnect = false;
|
||||||
setErrorMotd(String.format("%s: %s", server.getLastPing().getLastConnectionException().getClass().getCanonicalName(), server.getLastPing().getLastConnectionException().getLocalizedMessage()));
|
setErrorMotd(String.format("%s: %s", server.getLastPing().getLastConnectionException().getClass().getCanonicalName(), server.getLastPing().getLastConnectionException().getMessage()));
|
||||||
}
|
}
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ public class AsyncTaskWorker {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if (task.getImportance() == TaskImportance.REQUIRED) {
|
if (task.getImportance() == TaskImportance.REQUIRED) {
|
||||||
Log.fatal(String.format("Task %s (%s) failed: %s", task.getTaskName(), task.getTaskDescription(), e.getLocalizedMessage()));
|
Log.fatal(String.format("Task %s (%s) failed: %s", task.getTaskName(), task.getTaskDescription(), e.getMessage()));
|
||||||
if (exceptionRunnable != null) {
|
if (exceptionRunnable != null) {
|
||||||
exceptionRunnable.onFatal(e);
|
exceptionRunnable.onFatal(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user