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)

This commit is contained in:
Sebastian Stenzel
2019-02-11 13:28:38 +01:00
parent b7d06783dd
commit 50b167e28f

View File

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