summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-27 18:03:33 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-27 18:03:33 (GMT)
commit20263b719fd454f0e0c66b588510e18f0213ab68 (patch)
tree58d5a9884ff62b1ef77cee925d63e2449152eaa1 /Source
parentd31e68a26e6f854e90f3eab34d794a766227354d (diff)
parenta432b93b7919d34e37e202b0c992775a029928d3 (diff)
downloadCMake-20263b719fd454f0e0c66b588510e18f0213ab68.zip
CMake-20263b719fd454f0e0c66b588510e18f0213ab68.tar.gz
CMake-20263b719fd454f0e0c66b588510e18f0213ab68.tar.bz2
Merge topic 'robust-ep-download-verify'
a432b93b file DOWNLOAD: Display the curl result status when a hash mismatch occurs. 1cb9ef81 file DOWNLOAD: Test non-zero return status. f73f0fb3 file DOWNLOAD: Add test for bad hash. b5e2265f ExternalProject: Reattempt download when verification fails.
Diffstat (limited to 'Source')
-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;