Explorar o código

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

Matt McCormick %!s(int64=11) %!d(string=hai) anos
pai
achega
a432b93b79
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Source/cmFileCommand.cxx

+ 2 - 0
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;