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();
int xx,yy;
getmaxyx(stdscr, yy, xx);
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(m_Errors,
"Errors occurred during the last pass.");
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
m_Errors,
cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." :
"CMake produced the following output.");
CurrentForm = msgs;
msgs->Render(1,1,xx,yy);
msgs->HandleInput();