let handler exit if error occurs
This commit is contained in:
parent
e877336d0a
commit
7fd23a0ceb
|
@ -130,9 +130,10 @@
|
|||
(lambda (exit)
|
||||
(with-handler
|
||||
(lambda (condition more)
|
||||
(if (cgi-error? condition)
|
||||
(create-error-response condition req)
|
||||
(make-http-error-response http-status/internal-error req)))
|
||||
(exit
|
||||
(if (cgi-error? condition)
|
||||
(create-error-response condition req)
|
||||
(make-http-error-response http-status/internal-error req))))
|
||||
(lambda ()
|
||||
(compute-cgi path req bin-dir request-invariant-cgi-env)))))
|
||||
(make-http-error-response http-status/bad-request req "Empty CGI script"))))))
|
||||
|
|
Loading…
Reference in New Issue