Fixes bug 194232: fasl-write error message wrong about textual

output ports
This commit is contained in:
Abdulaziz Ghuloum 2008-02-26 04:07:33 -05:00
parent e36b0029f6
commit ed9f85ea7c
2 changed files with 8 additions and 5 deletions

View File

@ -388,7 +388,10 @@
(void))))
(define fasl-write
(case-lambda
[(x port)
(unless (and (output-port? port) (binary-port? port))
(die 'fasl-write "not an output port" port))
(fasl-write-to-port x port)])))
[(x p)
(cond
[(not (output-port? p))
(die 'fasl-write "not an output port" p)]
[(not (binary-port? p))
(die 'fasl-write "not a binary port" p)]
[else (fasl-write-to-port x p)])])))

View File

@ -1 +1 @@
1402
1405