Skip to content

Commit

Permalink
Merge pull request #7362 from alrossi/fix/9.2/cli-illegal-arg-on-call
Browse files Browse the repository at this point in the history
dcache-cli:  convert IllegalArgumentException to CommandException on …
  • Loading branch information
svemeyer committed Oct 4, 2023
2 parents ef878f4 + 1378259 commit 195fbb0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,12 @@ public Serializable execute(Args arguments) throws CommandException {
for (Handler handler : _handlers) {
handler.apply(command, arguments);
}
return command.call();
} catch (IllegalAccessException e) {
throw new RuntimeException("This is a bug. Please notify " +
"support@dcache.org", e);
} catch (IllegalArgumentException e) {
throw new CommandSyntaxException(e.getMessage());
}

try {
return command.call();
} catch (CommandException e) {
throw e;
} catch (RuntimeException e) {
Expand Down

0 comments on commit 195fbb0

Please sign in to comment.