Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
fabf539f
Commit
fabf539f
authored
Sep 04, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/gbfs/gbfsbackend.cpp
View file @
fabf539f
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment