[trunk/GroupManager] Correct error message on failing to load users file.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1291 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-30 18:12:46 +00:00
parent 6b7e913bbc
commit ec18c0096d

View File

@ -558,7 +558,7 @@ public class WorldDataHolder {
Yaml yamlUsers = new Yaml(new SafeConstructor());
Map<String, Object> usersRootDataNode;
if (!groupsFile.exists()) {
throw new IllegalArgumentException("The file which should contain permissions does not exist!\n" + groupsFile.getPath());
throw new IllegalArgumentException("The file which should contain permissions does not exist!\n" + usersFile.getPath());
}
FileInputStream usersInputStream = new FileInputStream(usersFile);
try {
@ -567,7 +567,7 @@ public class WorldDataHolder {
throw new NullPointerException();
}
} catch (Exception ex) {
throw new IllegalArgumentException("The following file couldn't pass on Parser.\n" + groupsFile.getPath(), ex);
throw new IllegalArgumentException("The following file couldn't pass on Parser.\n" + usersFile.getPath(), ex);
} finally {
usersInputStream.close();
}