prices: improve error message

This commit is contained in:
selsta 2019-07-23 01:00:40 +02:00
parent a65222d057
commit ff23a5bf1e
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -53,7 +53,7 @@ void Prices::getJSON(const QString url) {
void Prices::gotJSON() { void Prices::gotJSON() {
// Check connectivity // Check connectivity
if (!m_reply || m_reply->error() != QNetworkReply::NoError){ if (!m_reply || m_reply->error() != QNetworkReply::NoError){
this->gotError(); this->gotError("Problem with reply from server. Check connectivity.");
m_reply->deleteLater(); m_reply->deleteLater();
return; return;
} }
@ -105,6 +105,6 @@ void Prices::gotError() {
} }
void Prices::gotError(const QString &message) { void Prices::gotError(const QString &message) {
qCritical() << __FUNCTION__ << ": Error: " << message; qCritical() << "[Fiat API] Error:" << message;
emit priceJsonError(message); emit priceJsonError(message);
} }