summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-06 10:15:16 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-06 10:15:16 -0700
commite6772a66f2b6f2e0b4c4565c6079dde4f046bcee (patch)
treecde135621cfabc5c7195d4a79de3c156210f2ad9 /parser.c
parent495cc0601c52ffeac902843c0278eb461b201830 (diff)
downloadtxr-e6772a66f2b6f2e0b4c4565c6079dde4f046bcee.tar.gz
txr-e6772a66f2b6f2e0b4c4565c6079dde4f046bcee.tar.bz2
txr-e6772a66f2b6f2e0b4c4565c6079dde4f046bcee.zip
Distinguish exceptions from results in repl.
* parser.c (repl): Print "** " sequence in front of exception.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index f64c4681..f346c69c 100644
--- a/parser.c
+++ b/parser.c
@@ -542,6 +542,7 @@ val repl(val bindings, val in_stream, val out_stream)
if (uw_exception_subtype_p(exsym, syntax_error_s)) {
/* suppress syntax error exceptions: uninformative in the repl */
} else if (uw_exception_subtype_p(exsym, error_s)) {
+ put_string(lit("** "), out_stream);
obj_pprint(car(exvals), out_stream);
if (cdr(exvals)) {
put_string(lit(" "), out_stream);