Display message to user when IntergalacticFM channel list fails.
At the time of this commit, the channel list from intergalactic.fm is unavailable. To the user, this is failing silently. Add an error message for this failure. If this issue persists, then the service should be removed or a hardcoded station list should be used.
This commit is contained in:
parent
7e915648eb
commit
2132310873
|
@ -129,8 +129,8 @@ void IntergalacticFMServiceBase::RefreshStreamsFinished(QNetworkReply* reply,
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
|
||||||
if (reply->error() != QNetworkReply::NoError) {
|
if (reply->error() != QNetworkReply::NoError) {
|
||||||
// TODO(David Sansome): Error handling
|
app_->AddError(
|
||||||
qLog(Error) << reply->errorString();
|
tr("Failed to get channel list:\n%1").arg(reply->errorString()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue