mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
data_dictionary: fix swapped arguments in extraneous options error
The format string says "Extraneous options for {type}: {values}"
but the arguments were passed in the wrong order (values first, type
second), producing misleading error messages like
"Extraneous options for bucket,endpoint: S3" instead of
"Extraneous options for S3: bucket,endpoint".
Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
This commit is contained in:
committed by
Yaniv Michael Kaul
parent
a13da94308
commit
a6cf45f9e2
@@ -339,7 +339,7 @@ static storage_options::object_storage object_storage_from_map(std::string_view
|
||||
}
|
||||
if (values.size() > allowed_options.size()) {
|
||||
throw std::runtime_error(fmt::format("Extraneous options for {}: {}; allowed: {}",
|
||||
fmt::join(values | std::views::keys, ","), type,
|
||||
type, fmt::join(values | std::views::keys, ","),
|
||||
fmt::join(allowed_options | std::views::keys, ",")));
|
||||
}
|
||||
options.type = std::string(type);
|
||||
|
||||
Reference in New Issue
Block a user