summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2014-01-16 01:08:44 (GMT)
committerMatt McCormick <matt.mccormick@kitware.com>2014-01-16 01:08:44 (GMT)
commita432b93b7919d34e37e202b0c992775a029928d3 (patch)
tree7e811624b4c6638459f94460017e8298111fe487 /Source/cmFileCommand.cxx
parent1cb9ef817334235fa9ebb57060b6df78d1a0b058 (diff)
downloadCMake-a432b93b7919d34e37e202b0c992775a029928d3.zip
CMake-a432b93b7919d34e37e202b0c992775a029928d3.tar.gz
CMake-a432b93b7919d34e37e202b0c992775a029928d3.tar.bz2
file DOWNLOAD: Display the curl result status when a hash mismatch occurs.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 311763b..e79bc6c 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -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;