From f5e035fa3b5d536f7450c66cccb9ba7475d5ab89 Mon Sep 17 00:00:00 2001 From: JaniruTEC <52893617+JaniruTEC@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:22:21 +0200 Subject: [PATCH] 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 --- .../org/cryptomator/common/mount/MountWithinParentUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/common/mount/MountWithinParentUtil.java b/src/main/java/org/cryptomator/common/mount/MountWithinParentUtil.java index cb9992359..9b08a10cd 100644 --- a/src/main/java/org/cryptomator/common/mount/MountWithinParentUtil.java +++ b/src/main/java/org/cryptomator/common/mount/MountWithinParentUtil.java @@ -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; }