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

Update InformativeException message

Dieser Commit ist enthalten in:
Nassim Jahnke 2022-08-08 21:00:33 +02:00
Ursprung 08727f959f
Commit 9247e87bbf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -48,7 +48,7 @@ public class InformativeException extends Exception {
@Override @Override
public String getMessage() { public String getMessage() {
StringBuilder builder = new StringBuilder("Please post this error to https://github.com/ViaVersion/ViaVersion/issues and follow the issue template\n{"); StringBuilder builder = new StringBuilder("Please report this on the Via support Discord or open an issue on the relevant GitHub repository\n");
boolean first = true; boolean first = true;
for (Map.Entry<String, Object> entry : info.entrySet()) { for (Map.Entry<String, Object> entry : info.entrySet()) {
if (!first) { if (!first) {
@ -57,11 +57,11 @@ public class InformativeException extends Exception {
builder.append(entry.getKey()).append(": ").append(entry.getValue()); builder.append(entry.getKey()).append(": ").append(entry.getValue());
first = false; first = false;
} }
return builder.append("}\nActual Error: ").toString(); return builder.toString();
} }
@Override @Override
public synchronized Throwable fillInStackTrace() { public Throwable fillInStackTrace() {
// Don't record this stack // Don't record this stack
return this; return this;
} }