Fix failing hard when the database fails to initialize.

This commit is contained in:
Kavin 2023-06-05 08:06:49 +01:00
parent a045a10bc9
commit 427db7e443
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

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