mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
refactor: Shift FileAlreadyExistsException
catch to a higher level
This commit is contained in:
parent
07695786ca
commit
596356a936
@ -39,7 +39,7 @@ public class SchematicsEventListener {
|
|||||||
try {
|
try {
|
||||||
Files.createDirectories(config.resolve(event.getConfiguration().saveDir));
|
Files.createDirectories(config.resolve(event.getConfiguration().saveDir));
|
||||||
} catch (FileAlreadyExistsException e) {
|
} catch (FileAlreadyExistsException e) {
|
||||||
LOGGER.info("Schematic directory exists as file. Possible symlink.", e);
|
LOGGER.debug("Schematic directory exists as file. Possible symlink.", e);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOGGER.warn("Failed to create schematics directory", e);
|
LOGGER.warn("Failed to create schematics directory", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user