chickadee » spiffy » handle-exception

handle-exception #!optional procparameter

The handler for when an exception occurs. This defaults to a procedure that logs the error to the error log. While debugging or developing, it may be more convenient to use a procedure that sends the error back to the client:

(handle-exception
  (lambda (exn chain)
    (send-status 'internal-server-error (build-error-message exn chain))))