refactor: Shift FileAlreadyExistsException catch to a higher level

This commit is contained in:
NotMyFault 2021-12-27 00:00:49 +01:00
parent 07695786ca
commit 596356a936
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -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);
} }