Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17670: LJSUP-6921: Remove unneeded 'Can't get d...

Committer: gariev
LJSUP-6921: Remove unneeded 'Can't get data from last.fm' errors from remotelog-watch

U   trunk/cgi-bin/LJ/LastFM.pm
Modified: trunk/cgi-bin/LJ/LastFM.pm
===================================================================
--- trunk/cgi-bin/LJ/LastFM.pm	2010-11-11 10:33:52 UTC (rev 17669)
+++ trunk/cgi-bin/LJ/LastFM.pm	2010-11-11 10:36:03 UTC (rev 17670)
@@ -21,8 +21,7 @@
     my $url = "$LJ::LAST_FM_API_URL&api_key=$LJ::LAST_FM_API_KEY&user=$username";
     my $response = $ua->get($url);
     unless ($response->is_success) {
-        warn "Can't get data from last.fm: " . $response->status_line;
-        return { error => "Can't retrieve data from last.fm" };
+        return { error => "Can't retrieve data from last.fm: " . $response->status_line };
     }
     
     my $content = $response->content();

Tags: gariev, 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