mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
don't try printing a potentially corrupt stack after OOS (issue #371)
This commit is contained in:
parent
50d7cedb3f
commit
57c6d7c1ec
1 changed files with 2 additions and 1 deletions
1
main.c
1
main.c
|
@ -154,6 +154,7 @@ static void repl (sexp ctx, sexp env) {
|
|||
#endif
|
||||
if (res && sexp_exceptionp(res)) {
|
||||
sexp_print_exception(ctx, res, err);
|
||||
if (res != sexp_global(ctx, SEXP_G_OOS_ERROR))
|
||||
sexp_stack_trace(ctx, err);
|
||||
} else if (res != SEXP_VOID) {
|
||||
sexp_write(ctx, res, out);
|
||||
|
|
Loading…
Add table
Reference in a new issue