From 07eeff481ce2a6ffe319a11bf483c95231e0a8b0 Mon Sep 17 00:00:00 2001 From: Sude Date: Mon, 13 May 2024 19:28:10 +0300 Subject: [PATCH] Update error message in Downloader::downloadFileWithId --- src/downloader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/downloader.cpp b/src/downloader.cpp index 248017d..8e3a1f7 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2460,7 +2460,13 @@ int Downloader::downloadFileWithId(const std::string& fileid_string, const std:: if (!bFoundMatchingFile) { - std::cerr << "Failed to find file info (product id: " << product_id << " / file id: " << fileid << ")" << std::endl; + std::string error_msg = "Failed to find file info ("; + error_msg += "product id: " + product_id; + error_msg += (bIsDLC ? " / dlc gamename: " + dlc_gamename : ""); + error_msg += " / file id: " + fileid; + error_msg += ")"; + + std::cerr << error_msg << std::endl; return 1; }