Skip to content
Permalink
Browse files

[o2] Avoid a misleading console error output

  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 531f366 commit 87f5c0c0d41b79e6d8047008b2b0feb6d3334d1c
Showing with 4 additions and 1 deletion.
  1. +4 −1 external/o2/src/o2.cpp
@@ -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();
}

0 comments on commit 87f5c0c

Please sign in to comment.
You can’t perform that action at this time.