fix ausgabefehler zu v3.7.2 => v3.7.3

This commit is contained in:
Markus 2019-11-11 19:43:06 +01:00
parent 732b2d5940
commit dc79a18d7a
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ struct Settings {
proxy_ip = "127.0.0.1", proxy_ip = "127.0.0.1",
languages = "GerDub,GerSub,Eng,", languages = "GerDub,GerSub,Eng,",
genaueHoster = "", genaueHoster = "",
version = "3.7.2", version = "3.7.3",
defaultFileVersion="1.6", defaultFileVersion="1.6",
outputFilePath = "", outputFilePath = "",
default_checkPath = "", default_checkPath = "",

View File

@ -1063,7 +1063,7 @@ int ProgramManager::updateModus(Settings *settings)
if(neusteVersion.find(".") == std::string::npos) { if(neusteVersion.find(".") == std::string::npos) {
size_t pos; size_t pos;
if((pos = html.find("h1>")) != std::string::npos) if((pos = html.find("h1>")) != std::string::npos)
std::cout << " => Das herunterladen ist fehlgeschlagen: " << html.substr(pos + 3, html.find("</h1>") - pos); std::cout << " => Das herunterladen ist fehlgeschlagen: '" << html.substr(pos + 3, html.find("</h1>") - pos -3) << "'." << std::endl;
else else
std::cout << " => Error: Die neuste Version ist ungültig: '" << neusteVersion << "'." << std::endl; std::cout << " => Error: Die neuste Version ist ungültig: '" << neusteVersion << "'." << std::endl;
return -3; return -3;