summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 512dcd6..546dc32 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -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();