Typo in error message detection

(cherry picked from commit 7d1b00ff69)
This commit is contained in:
Eli Barzilay 2011-10-08 03:02:20 -04:00
parent 82b0237cd1
commit 3fefe33c2c

View File

@ -147,10 +147,10 @@ Polling a URL can result in one of four options:
(define r (define r
(with-handlers ([exn:fail? exn-message]) (with-handlers ([exn:fail? exn-message])
(call/input-url (string->url url) head-impure-port check-contents))) (call/input-url (string->url url) head-impure-port check-contents)))
(if (boolean? r) (if (string? r)
r
(begin (eprintf "WARNING: failure getting http info for ~a (~a)\n" url r) (begin (eprintf "WARNING: failure getting http info for ~a (~a)\n" url r)
#f))) #f)
r))
(define (verify-ftp url) (define (verify-ftp url)
(define-values [host port? path] (define-values [host port? path]