error message for non-string result in get-cgi-method
svn: r8569
This commit is contained in:
parent
cd8470fc21
commit
b79ea16fcf
|
@ -206,7 +206,10 @@
|
||||||
;; get-cgi-method : () -> string
|
;; get-cgi-method : () -> string
|
||||||
;; -- string is either GET or POST (though future extension is possible)
|
;; -- string is either GET or POST (though future extension is possible)
|
||||||
(define (get-cgi-method)
|
(define (get-cgi-method)
|
||||||
(getenv "REQUEST_METHOD"))
|
(let ([request-method (getenv "REQUEST_METHOD")])
|
||||||
|
(if (string? request-method)
|
||||||
|
request-method
|
||||||
|
(error 'get-cgi-method "REQUEST_METHOD environment variable: expected string, got ~v" request-method))))
|
||||||
|
|
||||||
;; generate-link-text : string x html-string -> html-string
|
;; generate-link-text : string x html-string -> html-string
|
||||||
(define (generate-link-text url anchor-text)
|
(define (generate-link-text url anchor-text)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user