Skip to content

Commit

Permalink
Converted to string
Browse files Browse the repository at this point in the history
  • Loading branch information
derickdiaz committed Jan 23, 2024
1 parent 8d5526f commit ec65b12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnf5/commands/download/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ 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: {}"), std::string(value));
}
urlprotocol_option.emplace(value);
});
Expand Down

0 comments on commit ec65b12

Please sign in to comment.