File tree Expand file tree Collapse file tree
src/main/java/com/github/smuddgge/leaf Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 <groupId >com.github.smuddgge</groupId >
55 <artifactId >Leaf</artifactId >
66 <name >Leaf</name >
7- <version >5.2.0 </version >
7+ <version >5.2.1 </version >
88 <description >A velocity utility plugin</description >
99 <build >
1010 <resources >
Original file line number Diff line number Diff line change 66
77 <groupId >com.github.smuddgge</groupId >
88 <artifactId >Leaf</artifactId >
9- <version >5.2.0 </version >
9+ <version >5.2.1 </version >
1010 <packaging >jar</packaging >
1111
1212 <name >Leaf</name >
9797 <dependency >
9898 <groupId >com.github.smuddgge</groupId >
9999 <artifactId >SquishyDatabase</artifactId >
100- <version >4.0 .0</version >
100+ <version >4.1 .0</version >
101101 </dependency >
102102
103103 <!-- Configuration API -->
Original file line number Diff line number Diff line change 5353@ Plugin (
5454 id = "leaf" ,
5555 name = "Leaf" ,
56- version = "5.2.0 " ,
56+ version = "5.2.1 " ,
5757 description = "A velocity utility plugin" ,
5858 authors = {"Smudge" }
5959)
@@ -353,12 +353,6 @@ public static boolean isDatabaseDisabled() {
353353 */
354354 public static void setupDatabase (File folder ) {
355355
356- try {
357- Class .forName ("com.mysql.jdbc.Driver" );
358- } catch (ClassNotFoundException e ) {
359- throw new RuntimeException (e );
360- }
361-
362356 // Set up the database.
363357 if (!ConfigDatabase .get ().getBoolean ("enabled" , true )) {
364358 Leaf .database = null ;
@@ -373,8 +367,13 @@ public static void setupDatabase(File folder) {
373367 ).build ();
374368
375369 } catch (Exception exception ) {
376- exception .printStackTrace ();
370+ Console .warn ("Unable to create a connection to the database." );
371+ Console .warn ("- If you are using mysql make sure the connection string is address:port" );
372+ Console .warn ("- Ensure you have filled the correct values in the database.yml config" );
373+ Console .warn ("&7" );
377374 Console .warn ("Connection String : " + ConfigDatabase .get ().getString ("connection_string" ));
375+ Console .warn ("&7" );
376+ exception .printStackTrace ();
378377 }
379378
380379 if (ConfigDatabase .isDebugMode ()) {
You can’t perform that action at this time.
0 commit comments