* 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) (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 ()

View File

@ -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)

View File

@ -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)))))