Skip to content

Commit

Permalink
handling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
derickdiaz committed Jan 23, 2024
1 parent eaafb0a commit 8d5526f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf5/commands/download/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ void DownloadCommand::set_argument_parser() {
[&ctx, this](
[[maybe_unused]] ArgumentParser::NamedArg * arg, [[maybe_unused]] const char * option, const char * value) {
if (urlprotocol_valid_options.find(value) == urlprotocol_valid_options.end()) {
throw libdnf5::cli::ArgumentParserInvalidValueError(M_("Invalid urlprotocol option: {}"), value)
throw libdnf5::cli::ArgumentParserInvalidValueError(M_("Invalid urlprotocol option: {}"), value);
}
urlprotocol_option.emplace_back(value);
urlprotocol_option.emplace(value);
});

cmd.register_named_arg(alldeps);
Expand Down

0 comments on commit 8d5526f

Please sign in to comment.