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

Fix propagating OJP network errors

parent 7bef8bb2
......@@ -54,7 +54,7 @@ bool OpenJourneyPlannerBackend::queryLocation(const LocationRequest &request, Lo
logReply(reply, netReply, data);
if (netReply->error() != QNetworkReply::NoError) {
addError(reply, Reply::NetworkError, reply->errorString());
addError(reply, Reply::NetworkError, netReply->errorString());
return;
}
......@@ -83,7 +83,7 @@ bool OpenJourneyPlannerBackend::queryStopover(const StopoverRequest &request, St
logReply(reply, netReply, data);
if (netReply->error() != QNetworkReply::NoError) {
addError(reply, Reply::NetworkError, reply->errorString());
addError(reply, Reply::NetworkError, netReply->errorString());
return;
}
......@@ -112,7 +112,7 @@ bool OpenJourneyPlannerBackend::queryJourney(const JourneyRequest &request, Jour
logReply(reply, netReply, data);
if (netReply->error() != QNetworkReply::NoError) {
addError(reply, Reply::NetworkError, reply->errorString());
addError(reply, Reply::NetworkError, netReply->errorString());
return;
}
......
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