1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

Show file name, if there is an exception in the user upgrade code.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1533 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-23 10:59:26 +00:00
parent d5312b08d5
commit 54471ec187

View File

@@ -137,6 +137,8 @@ public class EssentialsUpgrade
continue; continue;
} }
EssentialsConf config = new EssentialsConf(file); EssentialsConf config = new EssentialsConf(file);
try
{
config.load(); config.load();
if (config.hasProperty("home") && !config.hasProperty("home.default")) if (config.hasProperty("home") && !config.hasProperty("home.default"))
{ {
@@ -171,6 +173,12 @@ public class EssentialsUpgrade
} }
} }
} }
catch (RuntimeException ex)
{
logger.log(Level.INFO, "File: "+file.toString());
throw ex;
}
}
} }
private void moveUsersDataToUserdataFolder() private void moveUsersDataToUserdataFolder()