3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-30 18:10:12 +01:00

Change error message (#2286)

Dieser Commit ist enthalten in:
Jo0001 2021-02-01 14:51:03 +01:00 committet von GitHub
Ursprung c0fb81946e
Commit 7faf4cf81a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -31,7 +31,7 @@ public class InformativeException extends Exception {
@Override @Override
public String getMessage() { public String getMessage() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append("Please post this error to https://github.com/ViaVersion/ViaVersion/issues\n{"); builder.append("Please post this error to https://github.com/ViaVersion/ViaVersion/issues and follow the issue template\n{");
int i = 0; int i = 0;
for (Map.Entry<String, Object> entry : info.entrySet()) { for (Map.Entry<String, Object> entry : info.entrySet()) {
builder.append(i == 0 ? "" : ", ").append(entry.getKey()).append(": ").append(entry.getValue().toString()); builder.append(i == 0 ? "" : ", ").append(entry.getKey()).append(": ").append(entry.getValue().toString());