What Perrin already stated is very true. You don't want the world to see
these things.
I made a few lines in my httpd.conf saying:
ErrorDocument 500 /error/fatal/
ErrorDocument 403 /error/access/
ErrorDocument 404 /error/notfound/
...for the VirtualHost running this Mason site.
Inside these dirs I then output a nicely formatted error message that is
readable, and understandable to the user. And best of all - it's inside my
layout/structure of my site - looking very pro and stylish - even though
it's a fatal error ;)
I still get the errorstack in my apache log, so it's not blinding me
completely :)
I'm still dwelling on weather I want the system to log errors to a database,
or a custom logfile - so I get all the info I want (user IP, session data
and so forth).
But also have a look in the docs under:
http://masonhq.com/docs/manual/Admin.html#error_reporting_and_exceptions
That should give you a head start on handling errors more elegantly :)
- Nicolai
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Hicks
Sent: 28. maj 2006 01:41
To: [email protected]
Subject: [Mason] Re: I got an error and it was cool!
Perrin Harkins wrote:
> On Sat, 2006-05-27 at 09:56 -0400, Robert Hicks wrote:
>> I love the stack trace that prints out.
>
> It's very useful. Don't forget to turn it off when you make your site
> public though. You don't want the whole world looking through your
> site's code.
>
> - Perrin
>
Doh! I will have to look that up Monday. :-)
:Robert
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users