mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-14 14:20:29 +05:30
Merge pull request #615 from TeamPiped/db-init-hardfail
Fix failing hard when the database fails to initialize.
This commit is contained in:
commit
37216f0ffa
@ -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…
Reference in New Issue
Block a user