diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-06 10:15:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-06 10:15:16 -0700 |
commit | e6772a66f2b6f2e0b4c4565c6079dde4f046bcee (patch) | |
tree | cde135621cfabc5c7195d4a79de3c156210f2ad9 | |
parent | 495cc0601c52ffeac902843c0278eb461b201830 (diff) | |
download | txr-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.
-rw-r--r-- | parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |