From ff23a5bf1e2f48e331f48a974400abc61d6e9c24 Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 23 Jul 2019 01:00:40 +0200 Subject: [PATCH] prices: improve error message --- src/qt/prices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/prices.cpp b/src/qt/prices.cpp index b85899cf..2f212f4b 100644 --- a/src/qt/prices.cpp +++ b/src/qt/prices.cpp @@ -53,7 +53,7 @@ void Prices::getJSON(const QString url) { void Prices::gotJSON() { // Check connectivity if (!m_reply || m_reply->error() != QNetworkReply::NoError){ - this->gotError(); + this->gotError("Problem with reply from server. Check connectivity."); m_reply->deleteLater(); return; } @@ -105,6 +105,6 @@ void Prices::gotError() { } void Prices::gotError(const QString &message) { - qCritical() << __FUNCTION__ << ": Error: " << message; + qCritical() << "[Fiat API] Error:" << message; emit priceJsonError(message); }