mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +05:30
Fix failing hard when the database fails to initialize.
This commit is contained in:
parent
a045a10bc9
commit
427db7e443
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user