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:
Jim Broadus 2020-02-06 13:09:46 -08:00 committed by John Maguire
parent 7e915648eb
commit 2132310873
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ void IntergalacticFMServiceBase::RefreshStreamsFinished(QNetworkReply* reply,
reply->deleteLater();
if (reply->error() != QNetworkReply::NoError) {
// TODO(David Sansome): Error handling
qLog(Error) << reply->errorString();
app_->AddError(
tr("Failed to get channel list:\n%1").arg(reply->errorString()));
return;
}