From b870eac53b50605ad99482ab7208a9d2ebec84bc Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 4 May 2022 16:35:15 -0400 Subject: [PATCH] Expand SQL Error messages --- .../java/net/tylermurphy/hideAndSeek/database/Database.java | 1 + .../net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/database/Database.java b/src/main/java/net/tylermurphy/hideAndSeek/database/Database.java index 8001368..25a4171 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/database/Database.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/database/Database.java @@ -50,6 +50,7 @@ public class Database { conn = DriverManager.getConnection(url, config.toProperties()); } catch (SQLException e) { Main.plugin.getLogger().severe(e.getMessage()); + e.printStackTrace(); } return conn; } diff --git a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java index 7b9b476..5fa196c 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java @@ -47,6 +47,7 @@ public class PlayerInfoTable { statement.executeUpdate(sql); } catch (SQLException e){ Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); + e.printStackTrace(); } } @@ -74,6 +75,7 @@ public class PlayerInfoTable { rs.close(); } catch (SQLException e){ Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); + e.printStackTrace(); } catch (IOException e) { Main.plugin.getLogger().severe("IO Error: " + e.getMessage()); e.printStackTrace(); @@ -102,6 +104,7 @@ public class PlayerInfoTable { return infoList; } catch (SQLException e){ Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); + e.printStackTrace(); } return null; }