cleaning up error message
svn: r6100
This commit is contained in:
parent
cfdb0b6aef
commit
ea004857cf
|
@ -114,12 +114,14 @@
|
||||||
; more here - parameterize error based on a configurable file, perhaps?
|
; more here - parameterize error based on a configurable file, perhaps?
|
||||||
; This is slightly tricky since the (interesting) content comes from the exception.
|
; This is slightly tricky since the (interesting) content comes from the exception.
|
||||||
(define (servlet-loading-responder url exn)
|
(define (servlet-loading-responder url exn)
|
||||||
|
((error-display-handler)
|
||||||
|
(format "Servlet didn't load:\n~a\n" (exn-message exn))
|
||||||
|
exn)
|
||||||
(make-response/full 500 "Servlet didn't load"
|
(make-response/full 500 "Servlet didn't load"
|
||||||
(current-seconds)
|
(current-seconds)
|
||||||
TEXT/HTML-MIME-TYPE
|
TEXT/HTML-MIME-TYPE
|
||||||
'() ; check
|
'() ; check
|
||||||
(list "Servlet didn't load.\n"
|
(list "Servlet didn't load.\n")))
|
||||||
(exn->string exn))))
|
|
||||||
|
|
||||||
; gen-servlet-not-found : str -> url -> response
|
; gen-servlet-not-found : str -> url -> response
|
||||||
(define (gen-servlet-not-found file-not-found-file)
|
(define (gen-servlet-not-found file-not-found-file)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user