Expand SQL Error messages
This commit is contained in:
parent
1005d4a8d8
commit
b870eac53b
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue