Makes Nearest plugin adhere to v5 spec for precondition violations, fixes #2108
This commit is contained in:
committed by
Patrick Niklaus
parent
210da11fbb
commit
9ec46222e3
@@ -28,7 +28,7 @@ Status NearestPlugin::HandleRequest(const api::NearestParameters ¶ms,
|
||||
|
||||
if (params.coordinates.size() != 1)
|
||||
{
|
||||
return Error("TooBig", "Only one input coordinate is supported", json_result);
|
||||
return Error("InvalidOptions", "Only one input coordinate is supported", json_result);
|
||||
}
|
||||
|
||||
auto phantom_nodes = GetPhantomNodes(params, params.number_of_results);
|
||||
|
||||
Reference in New Issue
Block a user