From 7ff5c586a0f0e095593cdbd3e78a10cce73c4b9a Mon Sep 17 00:00:00 2001 From: Xavier horwood <39760456+Xavierhorwood@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:04:46 -0700 Subject: [PATCH] Add default for unknown db types (#522) * Add default for unknown db types * Add dbType to warning --- .../com/pyratron/pugmatt/bedrockconnect/BedrockConnect.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BedrockConnect.java b/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BedrockConnect.java index 30a08b2..a637bb9 100644 --- a/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BedrockConnect.java +++ b/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BedrockConnect.java @@ -137,6 +137,8 @@ public static void main(String[] args) { case "postgres": databaseType = DatabaseTypes.postgres; break; + default: + System.out.println("Unknown DB Type " + dbType + " using Mysql. Please use mysql, postgres, mariadb, or none"); } break; // Backwards-compatibility for legacy database/mysql settings