mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Improved the ScreenScraper error reporting.
This commit is contained in:
parent
996af43299
commit
939f3389d5
|
@ -350,14 +350,16 @@ void GuiScraperSearch::onSearchDone(const std::vector<ScraperSearchResult>& resu
|
|||
void GuiScraperSearch::onSearchError(const std::string& error)
|
||||
{
|
||||
if (mScrapeCount > 1) {
|
||||
LOG(LogInfo) << "GuiScraperSearch search error: " << error;
|
||||
LOG(LogError) << "GuiScraperSearch search error: " <<
|
||||
Utils::String::replace(error, "\n", "");
|
||||
mWindow->pushGui(new GuiMsgBox(mWindow, getHelpStyle(), Utils::String::toUpper(error),
|
||||
"RETRY", std::bind(&GuiScraperSearch::search, this, mLastSearch),
|
||||
"SKIP", mSkipCallback,
|
||||
"CANCEL", mCancelCallback));
|
||||
}
|
||||
else {
|
||||
LOG(LogInfo) << "GuiScraperSearch search error: " << error;
|
||||
LOG(LogError) << "GuiScraperSearch search error: " <<
|
||||
Utils::String::replace(error, "\n", "");
|
||||
mWindow->pushGui(new GuiMsgBox(mWindow, getHelpStyle(), Utils::String::toUpper(error),
|
||||
"RETRY", std::bind(&GuiScraperSearch::search, this, mLastSearch),
|
||||
"CANCEL", mCancelCallback));
|
||||
|
|
|
@ -214,11 +214,8 @@ void ScreenScraperRequest::process(const std::unique_ptr<HttpReq>& req,
|
|||
ss << "ScreenScraperRequest - Error parsing XML: " << parseResult.description();
|
||||
|
||||
std::string err = ss.str();
|
||||
setError("ScreenScraper error:\n" + err);
|
||||
LOG(LogError) << err;
|
||||
|
||||
LOG(LogError) << "ScreenScraperRequest - Additional information:";
|
||||
LOG(LogError) << req->getContent();
|
||||
setError("ScreenScraper error: \n" + req->getContent());
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue