Commit graph

8 commits

Author SHA1 Message Date
Scott Walters
e945a94c63 Reworked error handling to propogate errors downward, especially when webgui.debug is set 2011-07-26 03:10:56 -04:00
Scott Walters
9e557d4a7d The text of the error message might be useful in the stack trace. 2011-05-22 23:57:08 -04:00
Scott Walters
95def8a439 Perl run-time errors get kicked over to session->log->error, and
WebGUI::Middleware::StackTrace now intercepts errors as well as
fatals (since fatals are likely going away).
2011-05-22 15:25:10 -04:00
Scott Walters
13a2c359e7 Get rid of the cargo culted code about sending a text reply if the browser didn't specify
that it understands HTML.  This interacts badly with Plack::Test and doesn't have much of
a point in real life anyway, and I accidentally sent the test up that dends on this being
gone without sending this too.  Argh.  If I could send up a coherent commit just once...
2011-05-05 21:42:38 -04:00
Scott Walters
2f45f306fb Doc improvements 2011-05-05 15:08:06 -04:00
Scott Walters
59a22f4101 set recursion limit to 1 for dumped lexicals and function args; with unlimited depth, it was
making my Mozilla shoot to 1.5gigs and taking the server and browser forever to get the
error page up.
keep the HTML of the original page and tack it on to the end of the stack trace.
add WebGUI::Middleware::StackTrace to the default site.psgi in place of the standard StackTrace,
but leave a comment for the other one in case people prefer it.
2011-05-05 14:58:04 -04:00
Scott Walters
617ca066dc Tweak which stack frames WebGUI::Middleware::StackTrace skips for HTML and text output; add the modules it uses to testEnvironment.pl; comment out the dumping of the asset tree for now; silence a warning in testEnvironment.pl by tweaking module test/load order 2011-05-05 14:58:03 -04:00
Scott Walters
a97c1c9d86 middleware based on Plack::Middleware::StackTrace that also dumps all of the assets in a YUI tree view
because that seemed like a good idea at the time.
2011-05-05 14:58:03 -04:00