Added exception threw when config can't be saved.

This commit is contained in:
Robin Kupper
2011-04-11 11:38:29 +02:00
parent a2f05f4702
commit fbab24e139

View File

@@ -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");