From: Stoiko Ivanov Date: Tue, 30 Jul 2019 12:42:11 +0000 (+0200) Subject: CLIHandler: remove spurious abort() X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=93e9f666abaa50fb19e565055d14fd3649b0f86f CLIHandler: remove spurious abort() The abort currently cannot be reached, instead the error with the same message (unknown command '$cmdstr') in handle_cmd is raised. Signed-off-by: Stoiko Ivanov --- diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 2f607cd..802ce87 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -190,7 +190,6 @@ sub generate_usage_str { my $param_cb = $gen_param_mapping_func->($cli_handler_class); my ($subcmd, $def, undef, undef, $cmdstr) = resolve_cmd($cmd); - $abort->("unknown command '$cmdstr'") if !defined($def) && ref($cmd) eq 'ARRAY'; my $generate; $generate = sub {