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
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ public class InformativeException extends Exception {
@Override
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;
for (Map.Entry<String, Object> entry : info.entrySet()) {
if (!first) {
@ -57,11 +57,11 @@ public class InformativeException extends Exception {
builder.append(entry.getKey()).append(": ").append(entry.getValue());
first = false;
}
return builder.append("}\nActual Error: ").toString();
return builder.toString();
}
@Override
public synchronized Throwable fillInStackTrace() {
public Throwable fillInStackTrace() {
// Don't record this stack
return this;
}