mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
Throw an exception if we're unable to create the lib dir
This commit is contained in:
parent
6bfeec6d16
commit
74069af309
@ -100,7 +100,9 @@ public class DependencyManager {
|
||||
plugin.getLog().info("Identified the following dependencies: " + dependencies.toString());
|
||||
|
||||
File libDir = new File(plugin.getDataDirectory(), "lib");
|
||||
libDir.mkdirs();
|
||||
if (!(libDir.exists() || libDir.mkdirs())) {
|
||||
throw new RuntimeException("Unable to create lib dir - " + libDir.getPath());
|
||||
}
|
||||
|
||||
// Download files.
|
||||
List<File> filesToLoad = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user