Expand SQL Error messages

This commit is contained in:
Tyler Murphy 2022-05-04 16:35:15 -04:00
parent 1005d4a8d8
commit b870eac53b
2 changed files with 4 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public class Database {
conn = DriverManager.getConnection(url, config.toProperties()); conn = DriverManager.getConnection(url, config.toProperties());
} catch (SQLException e) { } catch (SQLException e) {
Main.plugin.getLogger().severe(e.getMessage()); Main.plugin.getLogger().severe(e.getMessage());
e.printStackTrace();
} }
return conn; return conn;
} }

View file

@ -47,6 +47,7 @@ public class PlayerInfoTable {
statement.executeUpdate(sql); statement.executeUpdate(sql);
} catch (SQLException e){ } catch (SQLException e){
Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); Main.plugin.getLogger().severe("SQL Error: " + e.getMessage());
e.printStackTrace();
} }
} }
@ -74,6 +75,7 @@ public class PlayerInfoTable {
rs.close(); rs.close();
} catch (SQLException e){ } catch (SQLException e){
Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); Main.plugin.getLogger().severe("SQL Error: " + e.getMessage());
e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
Main.plugin.getLogger().severe("IO Error: " + e.getMessage()); Main.plugin.getLogger().severe("IO Error: " + e.getMessage());
e.printStackTrace(); e.printStackTrace();
@ -102,6 +104,7 @@ public class PlayerInfoTable {
return infoList; return infoList;
} catch (SQLException e){ } catch (SQLException e){
Main.plugin.getLogger().severe("SQL Error: " + e.getMessage()); Main.plugin.getLogger().severe("SQL Error: " + e.getMessage());
e.printStackTrace();
} }
return null; return null;
} }