Added proper handling for a scraper error condition.

This commit is contained in:
Leon Styhre 2021-03-22 17:51:07 +01:00
parent 8bf304b867
commit 32007b65bb

View file

@ -646,8 +646,8 @@ void GuiScraperSearch::updateThumbnail()
}
}
else {
LOG(LogWarning) << "Thumbnail download failed: " << it->second->getErrorMsg();
mResultThumbnail->setImage("");
onSearchError("Error downloading thumbnail:\n " + it->second->getErrorMsg());
}
mThumbnailReqMap.erase(it);