Changeset 348

Show
Ignore:
Timestamp:
04/20/08 04:09:02 (7 months ago)
Author:
jake
Message:

better errors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/tweetsearch/tweet_poller.pl

    r345 r348  
    9595    my $since_id = ""; 
    9696    my $count   = 0; 
     97    my $error   = 0; 
    9798    my $ua = LWP::UserAgent->new; 
    9899    $ua->timeout(10); 
     
    121122                $since_id = $tweet->{id}; 
    122123            }; if($@){ 
    123                 #warn(Dumper($tweet)); 
     124                $error++ 
    124125            } 
    125126        } 
    126127 
    127         print STDERR "Loaded $count\r"; 
     128        print STDERR "Loaded $count, Exception $error\r"; 
    128129    } 
    129130}