mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[o2] Avoid a misleading console error output
This commit is contained in:
parent
531f366372
commit
87f5c0c0d4
5
external/o2/src/o2.cpp
vendored
5
external/o2/src/o2.cpp
vendored
@ -432,7 +432,6 @@ void O2::refresh() {
|
||||
|
||||
void O2::onRefreshFinished() {
|
||||
QNetworkReply *refreshReply = qobject_cast<QNetworkReply *>(sender());
|
||||
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
|
||||
if (refreshReply->error() == QNetworkReply::NoError) {
|
||||
QByteArray reply = refreshReply->readAll();
|
||||
QVariantMap tokens = parseTokenResponse(reply);
|
||||
@ -445,6 +444,10 @@ void O2::onRefreshFinished() {
|
||||
Q_EMIT refreshFinished(QNetworkReply::NoError);
|
||||
qDebug() << " New token expires in" << expires() << "seconds";
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "O2::onRefreshFinished: Error" << (int)refreshReply->error() << refreshReply->errorString();
|
||||
}
|
||||
refreshReply->deleteLater();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user