Identify as Fawe when throwing unknown exceptions

Closes #1281
Closes #1279
Closes #1282
This commit is contained in:
NotMyFault 2021-09-06 15:28:54 +02:00
parent e08a14b3a7
commit 8aadeb9291
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
3 changed files with 7 additions and 5 deletions

View File

@ -54,10 +54,10 @@ fun Project.applyPlatformAndCoreConfiguration() {
"compileOnly"("com.google.code.findbugs:jsr305:3.0.2")
"testImplementation"("org.junit.jupiter:junit-jupiter-api:5.7.2")
"testImplementation"("org.junit.jupiter:junit-jupiter-params:5.7.2")
"testImplementation"("org.mockito:mockito-core:3.11.2")
"testImplementation"("org.mockito:mockito-junit-jupiter:3.11.2")
"testImplementation"("org.mockito:mockito-core:3.12.4")
"testImplementation"("org.mockito:mockito-junit-jupiter:3.12.4")
"testImplementation"("net.bytebuddy:byte-buddy:1.11.9")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:3.11.2")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:3.12.4")
}
// Java 8 turns on doclint which we fail

View File

@ -51,7 +51,7 @@ text = "3.0.4"
piston = "0.5.7"
# Tests
mockito = "3.11.2"
mockito = "3.12.4"
checker-qual = "3.16.0"
# Gradle plugins

View File

@ -874,7 +874,9 @@ public final class PlatformCommandManager {
private void handleUnknownException(Actor actor, Throwable t) {
actor.print(Caption.of("worldedit.command.error.report"));
actor.print(TextComponent.of(t.getClass().getName() + ": " + t.getMessage()));
LOGGER.error("An unexpected error while handling a WorldEdit command", t);
//FAWE start - Exchange name
LOGGER.error("An unexpected error while handling a FastAsyncWorldEdit command", t);
//FAWE end
}
@Subscribe