code format + exception handling

This commit is contained in:
Sebastian Stenzel
2018-03-06 16:31:08 +01:00
parent 562daf990f
commit f1ee991d07

View File

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