mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-13 15:20:14 +01:00
Made setup throw the new 504 if needed
This commit is contained in:
parent
d1b12c830c
commit
e7002d73f0
@ -77,6 +77,8 @@ public class ManageSetupCommand extends SubCommand {
|
||||
sender.sendMessage("§eConnection failed: " + e.getMessage());
|
||||
} catch (InternalErrorException e) {
|
||||
sender.sendMessage("§eConnection succeeded. " + e.getMessage() + ", check possible ErrorLog on receiving server's debug page.");
|
||||
} catch (GatewayException e) {
|
||||
sender.sendMessage("§eConnection succeeded, but Bungee failed to connect to this server. Use Connection debug commands for more.");
|
||||
} catch (WebException e) {
|
||||
Log.toLog(this.getClass(), e);
|
||||
sender.sendMessage("§cConnection to Bungee WebServer failed: More info in the error log.");
|
||||
|
@ -6,6 +6,7 @@ package com.djrapitops.plan.system.info.request;
|
||||
|
||||
import com.djrapitops.plan.api.exceptions.connection.BadRequestException;
|
||||
import com.djrapitops.plan.api.exceptions.connection.ConnectionFailException;
|
||||
import com.djrapitops.plan.api.exceptions.connection.GatewayException;
|
||||
import com.djrapitops.plan.api.exceptions.connection.WebException;
|
||||
import com.djrapitops.plan.system.info.InfoSystem;
|
||||
import com.djrapitops.plan.system.info.server.Server;
|
||||
@ -81,7 +82,7 @@ public class SendDBSettingsRequest extends InfoRequestWithVariables implements S
|
||||
} catch (ConnectionFailException e) {
|
||||
Throwable cause = e.getCause();
|
||||
if (!(cause instanceof SocketException) || !cause.getMessage().contains("Unexpected end of file from server")) {
|
||||
throw e;
|
||||
throw new GatewayException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user