mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
[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:
@@ -558,7 +558,7 @@ public class WorldDataHolder {
|
|||||||
Yaml yamlUsers = new Yaml(new SafeConstructor());
|
Yaml yamlUsers = new Yaml(new SafeConstructor());
|
||||||
Map<String, Object> usersRootDataNode;
|
Map<String, Object> usersRootDataNode;
|
||||||
if (!groupsFile.exists()) {
|
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);
|
FileInputStream usersInputStream = new FileInputStream(usersFile);
|
||||||
try {
|
try {
|
||||||
@@ -567,7 +567,7 @@ public class WorldDataHolder {
|
|||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} 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 {
|
} finally {
|
||||||
usersInputStream.close();
|
usersInputStream.close();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user