2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[livejournal] r20034: https://jira.sup.com/browse/LJSUP-9792

Committer: slobin
https://jira.sup.com/browse/LJSUP-9792

M LiveJournal.pm
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-13 10:02:06 UTC (rev 20033)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-09-14 03:40:06 UTC (rev 20034)
@@ -187,16 +187,13 @@
 
     # try to match controller
     LJ::Router->match_controller;
-
     if ( my $controller = LJ::Request->notes('controller') ) {
         $controller->premature_checks;
-
         if ( my $redir = LJ::Request->redirected ) {
-            my ( $uri, $status ) = @$redir;
+            my ( $status, $uri ) = @$redir;
             return $status;
         }
     }
-
     LJ::Request->set_handlers(PerlTransHandler => [ \&trans ]);
 
     return LJ::Request::OK;
@@ -354,6 +351,9 @@
             # processing result of controller
             my $result = eval { $response->output };
 
+            warn "response error: $@"
+                if $@;
+
             return $response->http_status;
         } );
 
@@ -532,6 +532,9 @@
                 LJ::Request->set_handlers(PerlHandler => \&anti_squatter);
             }
 
+            warn "error: $@"
+                if $@;
+
             return LJ::Request::OK
         }
     }

Tags: 2heoh, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments