|
@@ -162,8 +162,13 @@ public class IdentityManager implements IdentityFactory, IdentityController {
|
162
|
162
|
}
|
163
|
163
|
}
|
164
|
164
|
|
165
|
|
- if (!file.exists() || file.listFiles() == null || file.listFiles().length == 0) {
|
166
|
|
- file.mkdirs();
|
|
165
|
+ if (!file.exists() && !file.mkdirs()) {
|
|
166
|
+ Logger.userError(ErrorLevel.FATAL, "Unable to create required directory '"
|
|
167
|
+ + file.getAbsolutePath() + "'. Please check file permissions or specify "
|
|
168
|
+ + "a different configuration directory.");
|
|
169
|
+ }
|
|
170
|
+
|
|
171
|
+ if (file.listFiles() == null || file.listFiles().length == 0) {
|
167
|
172
|
extractIdentities(target);
|
168
|
173
|
}
|
169
|
174
|
|