Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9585: LJSUP-6780 (Twitter Digest): warn with e...

Committer: ailyin
LJSUP-6780 (Twitter Digest): warn with errors
U   trunk/cgi-bin/LJ/TwitterDigest.pm
Modified: trunk/cgi-bin/LJ/TwitterDigest.pm
===================================================================
--- trunk/cgi-bin/LJ/TwitterDigest.pm	2010-10-04 06:55:53 UTC (rev 9584)
+++ trunk/cgi-bin/LJ/TwitterDigest.pm	2010-10-04 07:46:48 UTC (rev 9585)
@@ -282,6 +282,8 @@
     my $evt = $template->output;
     $evt =~ s/\s+/ /sg;
 
+    my $errs = "";
+
     my $res = LJ::Protocol::do_request('postevent', {
         'ver' => 1,
         'username' => $u->user,
@@ -298,8 +300,10 @@
         'twitter_repost_aware'  => 1,
         'repost_twitter'        => 0,
 
-    }, \"", { 'noauth' => 1 });
+    }, \$errs, { 'noauth' => 1 });
 
+    warn $errs if $errs;
+
     return $res;
 }
 

Tags: andy, ljcom, 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