Commit fabf539f authored by Volker Krause's avatar Volker Krause
Browse files

Don't report an error when at least one GBFS feed provided results

parent b48a6f23
Pipeline #78418 passed with stage
in 18 seconds
......@@ -237,7 +237,7 @@ bool GBFSBackend::queryLocation(const LocationRequest &req, LocationReply *reply
}
if (context->pendingJobs == 0 && !context->stillStarting) {
if (context->hasError) {
if (context->hasError && context->result.empty()) {
addError(reply, Reply::NetworkError, context->errorMessage);
} else {
addResult(reply, std::move(context->result));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment