file DOWNLOAD: Display the curl result status when a hash mismatch occurs.

This commit is contained in:
Matt McCormick 2014-01-15 20:08:44 -05:00
parent 1cb9ef8173
commit a432b93b79
1 changed files with 2 additions and 0 deletions

View File

@ -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;