ENH: fatal error if cvs update fails

This commit is contained in:
Bill Hoffman 2007-08-03 16:42:47 -04:00
parent 1a11a2d0c0
commit 1d250298d0
1 changed files with 9 additions and 1 deletions

View File

@ -317,7 +317,14 @@ int cmCTestUpdateHandler::ProcessHandler()
checkoutErrorMessages += ostr.str();
updateProducedError = true;
}
this->CTest->InitializeFromCommand(this->Command);
if(!this->CTest->InitializeFromCommand(this->Command))
{
cmCTestLog(this->CTest, HANDLER_OUTPUT,
" Fatal Error in initialize: "
<< std::endl);
cmSystemTools::SetFatalErrorOccured();
return -1;
}
}
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Updating the repository: "
<< sourceDirectory << std::endl);
@ -531,6 +538,7 @@ int cmCTestUpdateHandler::ProcessHandler()
{
cmCTestLog(this->CTest, ERROR_MESSAGE, "Cannot open log file"
<< std::endl);
return -1;
}
std::string start_time = this->CTest->CurrentTime();
double elapsed_time_start = cmSystemTools::GetTime();