mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 12:11:28 +00:00
code format + exception handling
This commit is contained in:
@@ -65,11 +65,12 @@ public class FuseVolume implements Volume {
|
||||
return windowsDriveLetters.getAvailableDriveLetters().iterator().next() + ":\\";
|
||||
}
|
||||
} else if (vaultSettings.individualMountPath().isNotNull().get()) {
|
||||
//specific path given
|
||||
return vaultSettings.individualMountPath().getValue();
|
||||
}
|
||||
//choose default path
|
||||
return SystemUtils.IS_OS_MAC ? DEFAULT_MOUNTROOTPATH_MAC : DEFAULT_MOUNTROOTPATH_LINUX;
|
||||
//specific path given
|
||||
return vaultSettings.individualMountPath().getValue();
|
||||
} else {
|
||||
//choose default path
|
||||
return SystemUtils.IS_OS_MAC ? DEFAULT_MOUNTROOTPATH_MAC : DEFAULT_MOUNTROOTPATH_LINUX;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -77,7 +78,8 @@ public class FuseVolume implements Volume {
|
||||
try {
|
||||
fuseMnt.reveal();
|
||||
} catch (org.cryptomator.frontend.fuse.mount.CommandFailedException e) {
|
||||
LOG.info("Revealing the vault in file manger failed: "+e.getMessage());
|
||||
LOG.info("Revealing the vault in file manger failed: " + e.getMessage());
|
||||
throw new CommandFailedException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user