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

[livejournal] r20539: LJM-1990: make correct error processing ...

Committer: slobin
LJM-1990: make correct error processing for actions when session expired

M Talk.pm
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-11-15 10:20:39 UTC (rev 20538)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-11-15 11:12:11 UTC (rev 20539)
@@ -2098,6 +2098,9 @@
     $controller->_user(LJ::get_remote());
     my $res = $controller->reply(\@opts);
 
+    return $res->output
+        if ref($res) eq 'LJ::Mob::Response::AuthRequired';
+
     # passing error messages
     $res->template->param(
         errors          => [map { { 'error' => $_ } } @{ $opts->{errors} }],    

Tags: 2heoh, livejournal, pm, slobin
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