[Jifty-commit] r896 - in jifty/trunk: share/web/templates/__jifty/error

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Apr 22 18:28:00 EDT 2006


Author: jesse
Date: Sat Apr 22 18:27:59 2006
New Revision: 896

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/share/web/templates/__jifty/error/mason_internal_error

Log:
 r11785 at hualien:  jesse | 2006-04-22 18:15:55 -0400
 * The error page wasn't doing the right thing when devel mode was off. (parameters were out of order).


Modified: jifty/trunk/share/web/templates/__jifty/error/mason_internal_error
==============================================================================
--- jifty/trunk/share/web/templates/__jifty/error/mason_internal_error	(original)
+++ jifty/trunk/share/web/templates/__jifty/error/mason_internal_error	Sat Apr 22 18:27:59 2006
@@ -35,22 +35,29 @@
 
 my $cont = Jifty->web->request->continuation;
 $wrapper = "/__jifty/error/_elements/wrapper"
-  if $cont and $cont->request->path eq "/__jifty/error/mason_internal_error";
+  if $cont
+  and $cont->request->path eq "/__jifty/error/mason_internal_error";
 
 # If we're not in devel, bail
-if (not Jifty->config->framework("DevelMode") or not $cont) {
-    $m->comp({content => sub {
-        $m->comp("_elements/error_text", error => "mason internal error");
-    }, $wrapper, title => "Something went awry"});
-    $m->abort;
+if ( not Jifty->config->framework("DevelMode") or not $cont ) {
+  $m->comp(
+    $wrapper,
+    {
+      content => sub {
+        $m->comp( "_elements/error_text", error => "mason internal error" );
+      },
+      title => "Something went awry"
+    }
+  );
+  $m->abort;
 }
 
-my $e = $cont->response->error;
+my $e   = $cont->response->error;
 my $msg = $e->message;
 $msg =~ s/, <\S+> (line|chunk) \d+\././;
 
-my $info = $e->analyze_error;
-my $file = $info->{file};
-my @lines = @{$info->{lines}};
-my @stack = @{$info->{frames}};
-</%init>
\ No newline at end of file
+my $info  = $e->analyze_error;
+my $file  = $info->{file};
+my @lines = @{ $info->{lines} };
+my @stack = @{ $info->{frames} };
+</%init>


More information about the Jifty-commit mailing list