From 50b167e28f60b20908a2c787c1d3fd1006cb34fe Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 11 Feb 2019 13:28:38 +0100 Subject: [PATCH] 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) --- .../src/main/java/org/cryptomator/ui/model/DokanyVolume.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java b/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java index 1805729a7..bca50b859 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/model/DokanyVolume.java +++ b/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); } }