production mode disabling html stack traces

21 views
Skip to first unread message

vibhu.m...@gmail.com

unread,
Jun 11, 2014, 4:48:51 PM6/11/14
to webl...@googlegroups.com
;*show-lisp-errors-p* is set indirectly by (start-weblocks :debug x)
(defmethod handle-error-condition :around ((app weblocks-webapp) c)
  (if *show-lisp-errors-p* (call-next-method) (handle-prod-error app c)))
(defun handle-prod-error (app c)
  (setf (weblocks::return-code*) 500)
  (weblocks::with-error-page-html ("500 Internal Server Error" "Error caught")
    (:p "There was an unexpected error.")))

o_z

unread,
Jun 24, 2014, 3:02:54 PM6/24/14
to webl...@googlegroups.com, vibhu.m...@gmail.com

Thanks for the fix. I've added it to Weblocks source.
среда, 11 июня 2014 г., 23:48:51 UTC+3 пользователь vibhu.m...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages