Skip to content

Commit

Permalink
fix error in help message
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Sep 24, 2024
1 parent e935ab3 commit 83538f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/cryptomator/cli/MountOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void setMountService(String value) {
var services = IntegrationsLoader.loadAll(MountService.class).toList();
var service = services.stream().filter(s -> s.getClass().getName().equals(value)).findFirst();
if (service.isEmpty()) {
var availableServices = services.stream().map(s -> getClass().getName()).collect(Collectors.joining(","));
var availableServices = services.stream().map(s -> s.getClass().getName()).collect(Collectors.joining(","));
var errorMessage = String.format("Invalid value '%s' for option '--mounter': Available mounters are [%s].", value, availableServices);
throw new CommandLine.ParameterException(spec.commandLine(), errorMessage);
}
Expand Down

0 comments on commit 83538f8

Please sign in to comment.