replace localized exception messages with english ones

This commit is contained in:
Bixilon 2020-11-25 20:31:10 +01:00
parent 2f84f9b75a
commit 06b4647008
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ public final class Minosoft {
// Do not translate this, translations might fail to load...
dialog.setTitle("Critical Error");
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.setWrapText(true);
dialog.getDialogPane().setContent(text);

View File

@ -194,7 +194,7 @@ public class ServerListCell extends ListCell<Server> implements Initializable {
version.setStyle("-fx-text-fill: red;");
optionsConnect.setDisable(true);
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()));
}
})));
}

View File

@ -85,7 +85,7 @@ public class AsyncTaskWorker {
} catch (Exception e) {
e.printStackTrace();
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) {
exceptionRunnable.onFatal(e);
}