Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
50b167e28f

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