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 a7217b5f03
commit 70c84083c4

View File

@ -137,6 +137,8 @@ public class EssentialsUpgrade
continue;
}
EssentialsConf config = new EssentialsConf(file);
try
{
config.load();
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()