Skip to content

Commit

Permalink
Fix error message typo (#837)
Browse files Browse the repository at this point in the history
Addresses Mark's note in issue #836.
  • Loading branch information
aqnuep authored Jan 7, 2024
1 parent 01d220c commit 7dedd7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/ktx/command_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ struct OptionsCreate {
std::optional<khr_df_transfer_e> result = {};

if (args[argName].count()) {
const auto oetfStr = to_upper_copy(args[argName].as<std::string>());
const auto it = values.find(oetfStr);
const auto oetfStr = args[argName].as<std::string>();
const auto it = values.find(to_upper_copy(oetfStr));
if (it != values.end()) {
result = it->second;
} else {
Expand Down Expand Up @@ -209,12 +209,12 @@ struct OptionsCreate {
std::optional<khr_df_primaries_e> result = {};

if (args[argName].count()) {
const auto primariesStr = to_upper_copy(args[argName].as<std::string>());
const auto it = values.find(primariesStr);
const auto primariesStr = args[argName].as<std::string>();
const auto it = values.find(to_upper_copy(primariesStr));
if (it != values.end()) {
result = it->second;
} else {
report.fatal_usage("Invalid or unsupported transfer function specified as --{} argument: \"{}\".", argName, primariesStr);
report.fatal_usage("Invalid or unsupported primaries specified as --{} argument: \"{}\".", argName, primariesStr);
}
}

Expand Down

0 comments on commit 7dedd7e

Please sign in to comment.