You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!mountService.hasCapability(MOUNT_TO_SYSTEM_CHOSEN_PATH) && mountPoint.isEmpty()) {
114
-
thrownewCommandLine.ParameterException(spec.commandLine(), "The selected mounter %s requires a mount point. Use --mountPoint /path/to/mount/point to specify it.".formatted(mountService.displayName()));
114
+
thrownewRuntimeException("Unsupported configuration: Mounter %s requires a mount point. Use --mountPoint /path/to/mount/point to specify it.".formatted(mountService.getClass().getName()));
115
115
}
116
+
116
117
varbuilder = prepareMountBuilder(fs);
117
-
mountPoint.ifPresent(builder::setMountpoint);
118
+
119
+
try {
120
+
mountPoint.ifPresent(builder::setMountpoint);
121
+
} catch (UnsupportedOperationExceptione) {
122
+
varerrorMessage = String.format("Unsupported configuration: Mounter '%s' does not support flag --mountpoint", mountService.getClass().getName());
123
+
thrownewRuntimeException(errorMessage);
124
+
}
118
125
LOG.debug("Mounting vault using {} to {}.", mountService.displayName(), mountPoint.isPresent() ? mountPoint.get() : "system chosen location");
0 commit comments