mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-24 08:21:23 +01:00
Update InformativeException message
This commit is contained in:
parent
08727f959f
commit
9247e87bbf
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user