On Fri, Mar 14, 2014 at 12:03 AM, Paul Boniol <[email protected]> wrote:

> But CGI::Carp::confess displays "<h1>Software error:</h1>
> bunch-of-other-text-that-glazes-eyes" that I don't need.  (End users say it
> is always the same error, cause they see all this additional text, and with
> all of that they do not see my error messages before it.)
>
> So... how do I die, print the calling line number, and not display a lot
> of extra stuff that is confusing end users?
>

For my web sites, I would display just the error to the user and send the
confess to the log file. Sometimes I also include a date and time with the
error message - makes finding the correct log entries easier.

For extra geeky points, you might also e-mail the confess to yourself.

-- 
Robert Wohlfarth

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to