Merge pull request #615 from TeamPiped/db-init-hardfail

Fix failing hard when the database fails to initialize.
This commit is contained in:
Kavin 2023-06-05 08:09:21 +01:00 committed by GitHub
commit 37216f0ffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,8 +69,8 @@ public class Main {
try (Session ignored = DatabaseSessionFactory.createSession()) {
System.out.println("Database connection is ready!");
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable t) {
t.printStackTrace();
System.exit(1);
}