Browse Source

ENH: not all messages are errors

Bill Hoffman 19 years ago
parent
commit
e975836292
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/CursesDialog/cmCursesMainForm.cxx

+ 6 - 1
Source/CursesDialog/cmCursesMainForm.cxx

@@ -738,8 +738,13 @@ int cmCursesMainForm::Generate()
     cmSystemTools::ResetErrorOccuredFlag();
     int xx,yy;
     getmaxyx(stdscr, yy, xx);
+    const char* title = "Messages during last pass.";
+    if(cmSystemTools::GetErrorOccuredFlag())
+      {
+      title = "Errors occurred during the last pass.";
+      }
     cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(this->Errors,
-                                                                "Errors occurred during the last pass.");
+                                                                title);
     CurrentForm = msgs;
     msgs->Render(1,1,xx,yy);
     msgs->HandleInput();