Added exception threw when config can't be saved.
This commit is contained in:
1 parent
a2f05f4702
commit
fbab24e139
1 file changed
+1
-1
@@ -96,7 +96,7 @@ public class Config {
|
||||
if (!keys.contains("usePermissions"))
|
||||
config.setProperty("usePermissions", false);
|
||||
if (!config.save())
|
||||
LogBlock.log.severe("[LogBlock] Error while writing to config.yml");
|
||||
throw new Exception("Error while writing to config.yml");
|
||||
dbDriver = config.getString("driver");
|
||||
dbUrl = config.getString("url");
|
||||
dbUsername = config.getString("username");
|
||||
|
||||
Reference in new issue
Block a user