Skip to content

Commit

Permalink
Change error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
webhead1104 committed May 16, 2024
1 parent b98dd9a commit 6591120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/cytonic/cytosis/data/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void disconnect() {
connection.close();
Logger.info("Database connection closed!");
} catch (SQLException e) {
Logger.error("An error occurred whilst disconnecting from the database. Please report the following stacktrace to Foxikle: ", e);
Logger.error("An error occurred whilst disconnecting from the database.", e);
}
}
});
Expand Down Expand Up @@ -102,7 +102,7 @@ private void createChatTable() {
ps = getConnection().prepareStatement("CREATE TABLE IF NOT EXISTS cytonic_chat (id INT NOT NULL AUTO_INCREMENT, timestamp TIMESTAMP, uuid VARCHAR(36), message TEXT, PRIMARY KEY(id))");
ps.executeUpdate();
} catch (SQLException e) {
Logger.error("An error occurred whilst fetching data from the database. Please report the following stacktrace to Foxikle:", e);
Logger.error("An error occurred whilst creating the `cytonic_chat` table.", e);
}
}
});
Expand Down Expand Up @@ -233,7 +233,7 @@ public void addChat(UUID uuid, String message) {
ps.setString(2, message);
ps.executeUpdate();
} catch (SQLException e) {
throw new RuntimeException(e);
Logger.error("An error occurred whilst adding a chat message.",e);
}
});
}
Expand Down

0 comments on commit 6591120

Please sign in to comment.