diff --git a/src/main/java/me/kavin/piped/Main.java b/src/main/java/me/kavin/piped/Main.java index 48d5569..b38464a 100644 --- a/src/main/java/me/kavin/piped/Main.java +++ b/src/main/java/me/kavin/piped/Main.java @@ -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); }