If there was no error, do not say that there was one

This commit is contained in:
Andy Cedilnik 2003-03-17 11:21:05 -05:00
parent d4d2779542
commit 889a119474
1 changed files with 4 additions and 2 deletions

View File

@ -665,8 +665,10 @@ int cmCursesMainForm::Configure()
cmSystemTools::ResetErrorOccuredFlag(); cmSystemTools::ResetErrorOccuredFlag();
int xx,yy; int xx,yy;
getmaxyx(stdscr, yy, xx); getmaxyx(stdscr, yy, xx);
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(m_Errors, cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
"Errors occurred during the last pass."); m_Errors,
cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." :
"CMake produced the following output.");
CurrentForm = msgs; CurrentForm = msgs;
msgs->Render(1,1,xx,yy); msgs->Render(1,1,xx,yy);
msgs->HandleInput(); msgs->HandleInput();