From 0279e408933e94213ca09381f4bc183859072cf0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 21 Oct 2016 06:26:45 -0700 Subject: repl: don't send error trace to *stderr*. * parser.c (repl): Pass out_stream rather than std_error to error_trace. I don't remember the original intent here. All it does is create strange puzzling behavior when an error occurs in the middle of a line of output that isn't flushed yet. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index cd542fe8..8817abe4 100644 --- a/parser.c +++ b/parser.c @@ -968,7 +968,7 @@ val repl(val bindings, val in_stream, val out_stream) if (uw_exception_subtype_p(exsym, syntax_error_s)) { put_line(lit("** syntax error"), out_stream); } else if (uw_exception_subtype_p(exsym, error_s)) { - error_trace(exsym, exvals, std_error, lit("**")); + error_trace(exsym, exvals, out_stream, lit("**")); } else { format(out_stream, lit("** ~!~s exception, args: ~!~s\n"), exsym, exvals, nao); -- cgit v1.2.3