output: Make errors, warnings, and notes into a new "message_item".
[pspp-builds.git] / src / ui / terminal / main.c
index 10b3b7e9abc9e92027ccfb8504b4acd6dbac5ed7..02be4f78c0e777f1e93df1719fc7fc0ed48f13f2 100644 (file)
@@ -129,13 +129,13 @@ main (int argc, char **argv)
                     "a cascade of dependent command failures."));
          getl_abort_noninteractive (the_source_stream);
        }
-      else
-       check_msg_count (the_source_stream);
+      else if (msg_ui_too_many_errors ())
+        getl_abort_noninteractive (the_source_stream);
     }
 
 
   clean_up ();
-  return any_errors ();
+  return msg_ui_any_errors ();
 }
 \f