Skip to content

Commit

Permalink
Add API-ERROR restart to api page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Feb 8, 2019
1 parent 916d056 commit 24c4d01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api.lisp
Expand Up @@ -156,8 +156,12 @@
(url-encode message)))
(api-output err :status code :message message)))))
(handler-case
(handler-bind ((api-error #'maybe-invoke-debugger))
(call-api-request api-endpoint *request*))
(restart-case
(handler-bind ((api-error #'maybe-invoke-debugger))
(call-api-request api-endpoint *request*))
(api-error (err)
:report "Treat as API error."
(output-error err 500)))
(api-error (err)
(output-error err 500))
(request-not-found (err)
Expand Down

0 comments on commit 24c4d01

Please sign in to comment.