瀏覽代碼

improved logging in case of "java.lang.IllegalStateException: Mount failed: Cannot assign a drive letter or mount point. Probably already used by another volume." (#806)

Sebastian Stenzel 6 年之前
父節點
當前提交
50b167e28f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java

+ 3 - 0
main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java

@@ -49,6 +49,9 @@ public class DokanyVolume implements Volume {
 		try {
 			this.mount = mountFactory.mount(fs.getPath("/"), mountPath, mountName, FS_TYPE_NAME);
 		} catch (MountFailedException e) {
+			if (vaultSettings.usesIndividualMountPath().get()) {
+				LOG.warn("Failed to mount vault into {}. Is this directory currently accessed by another process (e.g. Windows Explorer)?", mountPath);
+			}
 			throw new VolumeException("Unable to mount Filesystem", e);
 		}
 	}