diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-02-03 12:06:28 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-02-03 12:06:28 -0800 |
commit | 6863ad4c280d0235a7bf21043cc1196bc8655931 (patch) | |
tree | dc2dcf55985064cf2910fcecb00d6eeb0cfa9122 /eval.c | |
parent | 64a5ae81281d7097801e35767fb8518b4a713c5f (diff) | |
download | txr-6863ad4c280d0235a7bf21043cc1196bc8655931.tar.gz txr-6863ad4c280d0235a7bf21043cc1196bc8655931.tar.bz2 txr-6863ad4c280d0235a7bf21043cc1196bc8655931.zip |
Dump deferred warnings when eval exception thrown.
* eval.c (eval-exception): Call uw_dump_deferred_warnings
before throwing exception. The warnings could provide valuable
clues about the cause of the error.
* share/txr/stdlib/error.tl (compile-error): Likewise.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -225,6 +225,8 @@ noreturn static void eval_exception(val sym, val ctx, val fmt, va_list vl) (void) vformat(stream, fmt, vl); + uw_dump_deferred_warnings(std_error); + uw_throw(sym, get_string_from_stream(stream)); } |