Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restart for debugging #158

Merged
merged 3 commits into from Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/handler/fcgi.lisp
Expand Up @@ -48,7 +48,10 @@
(flet ((main-loop (req)
(let* ((env (handle-request req))
(res (if debug
(funcall app env)
(restart-case
(funcall app env)
(throw-internal-server-error ()
'(500 () ("Internal Server Error"))))
(handler-case (funcall app env)
(error (error)
(princ error *error-output*)
Expand Down
5 changes: 4 additions & 1 deletion src/handler/toot.lisp
Expand Up @@ -39,7 +39,10 @@
(handle-response
req
(if debug
(funcall app env)
(restart-case
(funcall app env)
(throw-internal-server-error ()
'(500 () ("Internal Server Error"))))
(handler-case (funcall app env)
(error (error)
(princ error *error-output*)
Expand Down
5 changes: 4 additions & 1 deletion src/handler/wookie.lisp
Expand Up @@ -68,7 +68,10 @@
(handle-response
res
(if debug
(funcall app env)
(restart-case
(funcall app env)
(throw-internal-server-error ()
'(500 nil ("Internal Server Error"))))
(handler-case (funcall app env)
(error (error)
(princ error *error-output*)
Expand Down