Skip to content

Commit

Permalink
Update error message in Downloader::downloadFileWithId
Browse files Browse the repository at this point in the history
  • Loading branch information
Sude- committed May 13, 2024
1 parent 761c3f1 commit 07eeff4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 07eeff4

Please sign in to comment.