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()) {
System.out.println("Database connection is ready!");
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable t) {
t.printStackTrace();
System.exit(1);
}