Applied changes from code review.

This commit is contained in:
JaniruTEC
2022-01-18 02:25:04 +01:00
parent b7902ad8fd
commit 080ddbbb01
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ package org.cryptomator.common.vaults;
public enum MountPointRequirement {
/**
* There must not be a parent folder and the actual Mountpoint must not exist.
* The Mountpoint needs to be a filesystem root and must not exist.
*/
NO_PARENT_NO_MOUNT_POINT,

View File

@@ -96,7 +96,7 @@ public class UnlockWorkflow extends Task<Boolean> {
showInvalidMountPointScene();
} else if (cause instanceof FileAlreadyExistsException) {
if (requirement == MountPointRequirement.NO_PARENT_NO_MOUNT_POINT) {
LOG.error("Unlock failed. Drive Letter already occupied: {}", cause.getMessage());
LOG.error("Unlock failed. Drive Letter already in use: {}", cause.getMessage());
} else {
LOG.error("Unlock failed. Mountpoint already exists: {}", cause.getMessage());
}

View File

@@ -116,7 +116,7 @@ unlock.error.heading=Unable to unlock vault
### Invalid Mount Point
unlock.error.invalidMountPoint.notExisting=Mount point "%s" is not a directory, not empty or does not exist.
unlock.error.invalidMountPoint.existing=Mount point "%s" already exists or parent folder is missing.
unlock.error.invalidMountPoint.driveLetterOccupied=Drive Letter "%s" is already occupied.
unlock.error.invalidMountPoint.driveLetterOccupied=Drive Letter "%s" is already in use.
# Lock
## Force