[Jifty-commit] r6719 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 31 13:49:38 EDT 2009


Author: alexmv
Date: Tue Mar 31 13:49:37 2009
New Revision: 6719

Modified:
   jifty/trunk/lib/Jifty/Dispatcher.pm

Log:
Abort can also be in the form of `die "ABORT"`, for redirects and the like

Modified: jifty/trunk/lib/Jifty/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Dispatcher.pm	Tue Mar 31 13:49:37 2009
@@ -1256,7 +1256,7 @@
 
     # Handle parse errors
     my $err = $@;
-    if ( $err and not eval { $err->isa('HTML::Mason::Exception::Abort') } ) {
+    if ( $err and not (eval { $err->isa('HTML::Mason::Exception::Abort') } or $err =~ /^ABORT/) ) {
         $self->log->fatal("View error: $err") if $err;
         if ($template eq '/errors/500') {
             $self->log->warn("Can't render internal_error: $err");


More information about the Jifty-commit mailing list