From 53502445e8b6a9b1d9ba4e3b5fda1b6796fe5669 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Mon, 2 Sep 2024 14:04:06 +0200 Subject: [PATCH] Log filelist URL to download in --verbose mode. Also rename from "master file" to "update filelist" --- src/s25update.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/s25update.cpp b/src/s25update.cpp index 4b17a8a..c06d3ac 100644 --- a/src/s25update.cpp +++ b/src/s25update.cpp @@ -644,9 +644,12 @@ void executeUpdate(int argc, char* argv[]) const auto possibleBases = getPossibleHttpBases(nightly); for(size_t i = 0; i < possibleBases.size(); i++) { - auto filelistOpt = DownloadFile(possibleBases[i] + FILELIST); + const std::string url = possibleBases[i] + FILELIST; + if(verbose) + bnw::cout << "Trying to download update filelist from '" << url << '"' << std::endl; + auto filelistOpt = DownloadFile(url); if(!filelistOpt) - bnw::cout << "Warning: Was not able to get masterfile " << i << ", trying older one" << std::endl; + bnw::cout << "Warning: Was not able to get update filelist " << i << ", trying older one" << std::endl; else { filelist = *filelistOpt; @@ -655,7 +658,7 @@ void executeUpdate(int argc, char* argv[]) } } if(filelist.empty()) - throw std::runtime_error("Could not get any master file"); + throw std::runtime_error("Could not get any update filelist"); // httpbase now includes targetpath and filepath