- Timestamp:
- Jun 21, 2013 3:38:04 PM (11 years ago)
- Branches:
- master
- Children:
- e960958
- Parents:
- fd6dbd0
- Location:
- Dev/twitter
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/twitter/dump_timeline.pl
rc1b8ad4 ra5b6bf1 160 160 warn $@->error; 161 161 if ($@->twitter_error) { 162 my %twitter_error = %{$@->twitter_error}; 163 map { 164 $twitter_error{"$_ => "} = $twitter_error{$_} . "\n"; 165 delete $twitter_error{$_} 166 } keys %twitter_error; 167 warn join("", %twitter_error); 162 my $twitter_error = $@->twitter_error; 163 if (defined $twitter_error->{errors}) { 164 foreach my $error (@{$twitter_error->{errors}}) { 165 warn "code => " , $error->{code}, "\n"; 166 warn "message => ", $error->{message}, "\n"; 167 } 168 } 169 else { 170 # unknown HASH structure 171 use Data::Dumper; 172 warn Dumper $twitter_error; 173 } 168 174 } 169 175 } -
Dev/twitter/show_status.pl
r43d739e ra5b6bf1 58 58 warn $@->error; 59 59 if ($@->twitter_error) { 60 my %twitter_error = %{$@->twitter_error}; 61 map { 62 $twitter_error{"$_ => "} = $twitter_error{$_} . "\n"; 63 delete $twitter_error{$_} 64 } keys %twitter_error; 65 warn join("", %twitter_error); 60 my $twitter_error = $@->twitter_error; 61 if (defined $twitter_error->{errors}) { 62 foreach my $error (@{$twitter_error->{errors}}) { 63 warn "code => " , $error->{code}, "\n"; 64 warn "message => ", $error->{message}, "\n"; 65 } 66 } 67 else { 68 # unknown HASH structure 69 use Data::Dumper; 70 warn Dumper $twitter_error; 71 } 66 72 } 67 73 } -
Dev/twitter/twitterbot.pl
r43d739e ra5b6bf1 302 302 warn $@->error; 303 303 if ($@->twitter_error) { 304 my %twitter_error = %{$@->twitter_error}; 305 map { 306 $twitter_error{"$_ => "} = $twitter_error{$_} . "\n"; 307 delete $twitter_error{$_} 308 } keys %twitter_error; 309 warn join("", %twitter_error); 304 my $twitter_error = $@->twitter_error; 305 if (defined $twitter_error->{errors}) { 306 foreach my $error (@{$twitter_error->{errors}}) { 307 warn "code => " , $error->{code}, "\n"; 308 warn "message => ", $error->{message}, "\n"; 309 } 310 } 311 else { 312 # unknown HASH structure 313 use Data::Dumper; 314 warn Dumper $twitter_error; 315 } 310 316 } 311 317 } -
Dev/twitter/update_timeline.pl
r43d739e ra5b6bf1 112 112 warn $@->error; 113 113 if ($@->twitter_error) { 114 my %twitter_error = %{$@->twitter_error}; 115 map { 116 $twitter_error{"$_ => "} = $twitter_error{$_} . "\n"; 117 delete $twitter_error{$_} 118 } keys %twitter_error; 119 warn join("", %twitter_error); 114 my $twitter_error = $@->twitter_error; 115 if (defined $twitter_error->{errors}) { 116 foreach my $error (@{$twitter_error->{errors}}) { 117 warn "code => " , $error->{code}, "\n"; 118 warn "message => ", $error->{message}, "\n"; 119 } 120 } 121 else { 122 # unknown HASH structure 123 use Data::Dumper; 124 warn Dumper $twitter_error; 125 } 120 126 } 121 127 }
Note: See TracChangeset
for help on using the changeset viewer.