浏览代码

ENH: print errors when they are there

Bill Hoffman 22 年之前
父节点
当前提交
baadc0a361
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/cmCTest.cxx

+ 2 - 0
Source/cmCTest.cxx

@@ -3886,6 +3886,7 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
   if (cm.Run(args) != 0)
     {
     std::cerr << "Error: cmake execution failed\n";
+    std::cerr << cmakeOutString << "\n";
     // return to the original directory
     cmSystemTools::ChangeDirectory(cwd.c_str());
     return 1;
@@ -3895,6 +3896,7 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
     if (cm.Run(args) != 0)
       {
       std::cerr << "Error: cmake execution failed\n";
+      std::cerr << cmakeOutString << "\n";
       // return to the original directory
       cmSystemTools::ChangeDirectory(cwd.c_str());
       return 1;