mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-19 09:06:54 -04:00
Applied changes from code review.
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user