Applied suggestions from code review

Updated log message
Replaced caught exception

See: https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1262297316
https://github.com/cryptomator/cryptomator/pull/2996#discussion_r1262298832
This commit is contained in:
JaniruTEC
2023-07-13 15:22:21 +02:00
parent 96ebb67085
commit f5e035fa3b

View File

@@ -81,7 +81,7 @@ public final class MountWithinParentUtil {
return false;
}
return true;
} catch (FileNotFoundException e) {
} catch (NoSuchFileException e) {
return false;
} catch (IOException e) {
throw new MountPointPreparationException(e);
@@ -100,7 +100,7 @@ public final class MountWithinParentUtil {
try {
waitForMountpointRestoration(mountPoint);
if (Files.notExists(hideaway, LinkOption.NOFOLLOW_LINKS)) {
LOG.error("Unable to restore hidden directory to mountpoint \"{}\": Directory does not exist. (Deleted by user?)", mountPoint);
LOG.error("Unable to restore hidden directory to mountpoint \"{}\": Directory does not exist.", mountPoint);
return;
}