ENH: print errors when they are there

This commit is contained in:
Bill Hoffman 2004-01-07 16:15:55 -05:00
parent 66dc84581c
commit baadc0a361
1 changed files with 2 additions and 0 deletions

View File

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