* Unhandled exceptions are now sent to (standard-error-port) instead
of (console-output-port).
This commit is contained in:
parent
8be77bcd21
commit
6faba94b11
|
@ -72,7 +72,7 @@ description:
|
||||||
(lambda (con)
|
(lambda (con)
|
||||||
(reset-input-port! (console-input-port))
|
(reset-input-port! (console-input-port))
|
||||||
(flush-output-port (console-output-port))
|
(flush-output-port (console-output-port))
|
||||||
(display "Unhandled exception\n")
|
(display "Unhandled exception\n" (standard-error-port))
|
||||||
(print-condition con)
|
(print-condition con)
|
||||||
(k (void)))
|
(k (void)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
|
@ -355,7 +355,7 @@
|
||||||
(if (null? ls)
|
(if (null? ls)
|
||||||
(display "Condition object with no further information\n" p)
|
(display "Condition object with no further information\n" p)
|
||||||
(begin
|
(begin
|
||||||
(display " Condition components:\n")
|
(display " Condition components:\n" p)
|
||||||
(let f ([ls ls] [i 1])
|
(let f ([ls ls] [i 1])
|
||||||
(unless (null? ls)
|
(unless (null? ls)
|
||||||
(display " " p)
|
(display " " p)
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
(newline p)]))
|
(newline p)]))
|
||||||
(case-lambda
|
(case-lambda
|
||||||
[(x)
|
[(x)
|
||||||
(print-condition x (console-output-port))]
|
(print-condition x (standard-error-port))]
|
||||||
[(x port)
|
[(x port)
|
||||||
(if (output-port? port)
|
(if (output-port? port)
|
||||||
(print-condition x port)
|
(print-condition x port)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
(make-parameter
|
(make-parameter
|
||||||
(list
|
(list
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(printf "unhandled exception:\n")
|
(display "Unhandled exception:\n" (standard-error-port))
|
||||||
(print-condition x)
|
(print-condition x)
|
||||||
(exit -1)))))
|
(exit -1)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue