Tell the user to try --login if no games are found on the account.

This commit is contained in:
Sude 2014-07-04 16:31:30 +03:00
parent c1e7adeb0b
commit 2aeca35097

View File

@ -1804,6 +1804,10 @@ std::vector<gameItem> Downloader::getGames()
#endif
page_html = root["html"].asString();
html += page_html;
if (page_html.empty() && i == 1)
{
std::cout << "No games were found on your account. Try --login to refresh your authorization." << std::endl;
}
i++;
} while (!page_html.empty());