]> jfr.im git - irc/rizon/acid.git/commitdiff
Log full error when unable to create database connection
authorAdam <redacted>
Sun, 20 Mar 2022 21:49:37 +0000 (17:49 -0400)
committerAdam <redacted>
Sun, 20 Mar 2022 21:49:37 +0000 (17:49 -0400)
acid/src/main/java/net/rizon/acid/sql/SQL.java

index c1dc9d135f7692cbbb7fec1bbb22b82fcadf1d9d..06a556049b35361f7f3b983c2792f42e467bbd49 100644 (file)
@@ -248,13 +248,9 @@ public class SQL extends Thread
                                return new SQL(d.host, d.user, d.pass);
                        }
                }
-               catch (ClassNotFoundException ex)
+               catch (ClassNotFoundException | SQLException ex)
                {
-                       throw new RuntimeException(ex.getMessage());
-               }
-               catch (SQLException ex)
-               {
-                       throw new RuntimeException(ex.getMessage());
+                       throw new RuntimeException(ex);
                }
 
                return null;