Merge pull request #2310

ff23a5b prices: improve error message (selsta)
This commit is contained in:
luigi1111
2019-07-23 11:29:46 -05:00

View File

@@ -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);
}