repl exception handler now returns for non-serious conditions
(as per bug 242900)
This commit is contained in:
parent
badf83557f
commit
b15c7063f9
|
@ -70,10 +70,13 @@ description:
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (con)
|
(lambda (con)
|
||||||
(reset-input-port! (console-input-port))
|
(reset-input-port! (console-input-port))
|
||||||
|
(k (void)))
|
||||||
|
(lambda ()
|
||||||
|
(with-exception-handler
|
||||||
|
(lambda (con)
|
||||||
(flush-output-port (console-output-port))
|
(flush-output-port (console-output-port))
|
||||||
(display "Unhandled exception\n" (console-error-port))
|
(display "Unhandled exception\n" (console-error-port))
|
||||||
(print-condition con (console-error-port))
|
(print-condition con (console-error-port)))
|
||||||
(k (void)))
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(display-prompt 0)
|
(display-prompt 0)
|
||||||
(let ([x (my-read k)])
|
(let ([x (my-read k)])
|
||||||
|
@ -89,7 +92,7 @@ description:
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (v)
|
(lambda (v)
|
||||||
(pretty-print v (console-output-port)))
|
(pretty-print v (console-output-port)))
|
||||||
v*))))]))))))
|
v*))))]))))))))
|
||||||
(wait eval-proc escape-k)))
|
(wait eval-proc escape-k)))
|
||||||
|
|
||||||
(define do-new-cafe
|
(define do-new-cafe
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1528
|
1529
|
||||||
|
|
Loading…
Reference in New Issue