On Mon, 26 Feb 2007 20:11:27 +0100, Nicolas Lamirault lam@tuxfamily.org wrote:
i would like to print a customized error message. it is possible ?
Sure.
i try to modify my code like this :
(handler-case (progn ...) (db-connect-error (cond) (setf (hunchentoot:session-value 'error-msg) cond) (hunchentoot:redirect "/test-lam/index")) ...)
he index-handler which print the error message but it doesn't works. The customize error handler catch the exception before
From your example it's impossible to see where the problem is. What's
in the "..." part? Are you sure the error happens in there? Are you sure it's of type DB-CONNECT-ERROR?