handle throws to unknown keys in the repl

* module/system/repl/repl.scm (default-catch-handler): Don't rethrow if
  we don't know the key, just print an error.
This commit is contained in:
Andy Wingo 2008-10-09 11:10:25 +02:00
commit 1bb6b839ec

View file

@ -88,7 +88,8 @@
(set! stack-saved? #f)
(force-output cep)))
(else
(apply bad-throw args))))
(format (current-error-port) "\nERROR: uncaught throw to `~a', args: ~a\n"
(car args) (cdr args)))))
(define (call-with-backtrace thunk)
(catch #t