mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
file DOWNLOAD: Display the curl result status when a hash mismatch occurs.
This commit is contained in:
@@ -2983,6 +2983,8 @@ cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args)
|
||||
<< " for file: [" << file << "]" << std::endl
|
||||
<< " expected hash: [" << expectedHash << "]" << std::endl
|
||||
<< " actual hash: [" << actualHash << "]" << std::endl
|
||||
<< " status: [" << (int)res << ";\""
|
||||
<< ::curl_easy_strerror(res) << "\"]" << std::endl
|
||||
;
|
||||
this->SetError(oss.str().c_str());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user