diff src/error.cc @ 169:49ab724d0a32

[project @ 1993-10-21 21:56:38 by jwe]
author jwe
date Thu, 21 Oct 1993 21:57:52 +0000
parents 7849db4b6dbc
children de0e58f9b064
line wrap: on
line diff
--- a/src/error.cc
+++ b/src/error.cc
@@ -30,6 +30,7 @@
 #include <stdarg.h>
 
 #include "error.h"
+#include "pager.h"
 
 // Current error state.
 int error_state;
@@ -78,6 +79,8 @@
   if (! error_state)
     error_state = 1;
 
+  flush_output_to_pager ();
+
   va_list args;
   va_start (args, fmt);
   verror ("error", fmt, args);
@@ -87,6 +90,8 @@
 void volatile
 panic (const char *fmt, ...)
 {
+  flush_output_to_pager ();
+
   va_list args;
   va_start (args, fmt);
   verror ("panic", fmt, args);