瀏覽代碼

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
JaniruTEC 1 年之前
父節點
當前提交
f5e035fa3b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/org/cryptomator/common/mount/MountWithinParentUtil.java

+ 2 - 2
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;
 			}