mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix failing hard when the database fails to initialize.
This commit is contained in:
parent
a045a10bc9
commit
427db7e443
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue