aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r--lib/jobs/basejob.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 6ed9862f..6984f16f 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -315,13 +315,10 @@ void BaseJob::gotReply()
}
if (json.value("errcode").toString() == "M_CONSENT_NOT_GIVEN")
{
- auto urlString = json.value("consent_uri").toString();
- setStatus(UserConsentRequiredError,
- tr("You must agree with the server's privacy policy; "
- "please visit %1").arg(urlString));
- d->errorUrl = urlString;
+ d->status.code = UserConsentRequiredError;
+ d->errorUrl = json.value("consent_uri").toString();
}
- if (!json.isEmpty()) // FIXME: The below is not localisable
+ else if (!json.isEmpty()) // FIXME: The below is not localisable
setStatus(IncorrectRequestError, json.value("error").toString());
}
}
@@ -538,7 +535,7 @@ QString BaseJob::errorCaption() const
case ContentAccessError:
return tr("Access error");
case NotFoundError:
- return tr("Requested data not found");
+ return tr("Not found");
case IncorrectRequestError:
return tr("Invalid request");
case IncorrectResponseError: