Update InformativeException message

This commit is contained in:
Nassim Jahnke 2022-08-08 21:00:33 +02:00
parent 08727f959f
commit 9247e87bbf
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -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;
} }