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).
This commit is contained in:
Scott Walters 2011-05-22 15:23:25 -04:00
parent f4bd6d3f2f
commit 95def8a439
2 changed files with 13 additions and 1 deletions

View file

@ -155,6 +155,8 @@ sub handle {
# }
# );
# return;
local $SIG{__DIE__} = sub { $session->log->error(@_); die @_; };
# Look for the template preview HTTP headers
WebGUI::Asset::Template->processVariableHeaders($session);