Skip to content

Commit

Permalink
Fix error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Oct 3, 2023
1 parent b8e7004 commit 29f2937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws/tolwsbooting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ string taxon_addition_method_handler( const json& parsedargs )
// But this just handles one addition.

auto [locked_taxonomy,lock] = tts.get_writable_taxonomy();
auto taxa = parsedargs["taxa"];
auto taxa = extract_required_argument<string>(parsedargs, "taxa");
int num_new_ottids = extract_required_argument<int>(parsedargs, "new_ottids_required");
if (taxa.size() > num_new_ottids)
throw OTCBadRequest() << "Amendment mentions "<<taxa.size()<<" taxa, but "<<num_new_ottids<<" new OTT IDs.";
Expand Down

0 comments on commit 29f2937

Please sign in to comment.