diff src/error.cc @ 3585:d9803711e047

[project @ 2000-02-08 04:35:39 by jwe]
author jwe
date Tue, 08 Feb 2000 04:35:47 +0000
parents ab7fa5a8f23f
children c11d138d654a
line wrap: on
line diff
--- a/src/error.cc
+++ b/src/error.cc
@@ -82,7 +82,8 @@
 static void
 verror (const char *name, const char *fmt, va_list args)
 {
-  flush_octave_stdout ();
+  if (! buffer_error_messages)
+    flush_octave_stdout ();
 
   bool to_beep_or_not_to_beep_p = Vbeep_on_error && ! error_state;
 
@@ -222,10 +223,9 @@
 void
 panic (const char *fmt, ...)
 {
-  flush_octave_stdout ();
-
   va_list args;
   va_start (args, fmt);
+  buffer_error_messages = false;
   verror ("panic", fmt, args);
   va_end (args);
   abort ();