mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
prices: improve error message
This commit is contained in:
parent
a65222d057
commit
ff23a5bf1e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue