Committer: slobin
LJM-1990: make correct error processing for actions when session expiredM 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} }],