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());
|
plugin.getLog().info("Identified the following dependencies: " + dependencies.toString());
|
||||||
|
|
||||||
File libDir = new File(plugin.getDataDirectory(), "lib");
|
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.
|
// Download files.
|
||||||
List<File> filesToLoad = new ArrayList<>();
|
List<File> filesToLoad = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user