* Unhandled exceptions are now sent to (standard-error-port) instead

of (console-output-port).
This commit is contained in:
Abdulaziz Ghuloum 2007-11-04 14:53:36 -05:00
parent 8be77bcd21
commit 6faba94b11
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ description:
(lambda (con)
(reset-input-port! (console-input-port))
(flush-output-port (console-output-port))
(display "Unhandled exception\n")
(display "Unhandled exception\n" (standard-error-port))
(print-condition con)
(k (void)))
(lambda ()

View File

@ -355,7 +355,7 @@
(if (null? ls)
(display "Condition object with no further information\n" p)
(begin
(display " Condition components:\n")
(display " Condition components:\n" p)
(let f ([ls ls] [i 1])
(unless (null? ls)
(display " " p)
@ -369,7 +369,7 @@
(newline p)]))
(case-lambda
[(x)
(print-condition x (console-output-port))]
(print-condition x (standard-error-port))]
[(x port)
(if (output-port? port)
(print-condition x port)

View File

@ -30,7 +30,7 @@
(make-parameter
(list
(lambda (x)
(printf "unhandled exception:\n")
(display "Unhandled exception:\n" (standard-error-port))
(print-condition x)
(exit -1)))))