flush stdout before writing to stderr in print_error()
This commit is contained in:
parent
74ee2878b6
commit
527c2643d1
@ -286,6 +286,7 @@ print_error()
|
|||||||
object *exception, *v, *tb, *f;
|
object *exception, *v, *tb, *f;
|
||||||
err_fetch(&exception, &v, &tb);
|
err_fetch(&exception, &v, &tb);
|
||||||
flushline();
|
flushline();
|
||||||
|
fflush(stdout);
|
||||||
if (exception == NULL)
|
if (exception == NULL)
|
||||||
fatal("print_error called but no exception");
|
fatal("print_error called but no exception");
|
||||||
if (exception == SystemExit) {
|
if (exception == SystemExit) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user