Changeset 348cffc
- Timestamp:
- Jun 22, 2011, 9:56:47 PM (13 years ago)
- Children:
- 68fa539
- Parents:
- f134488
- git-author:
- Edward Z. Yang <ezyang@mit.edu> (06/22/11 09:02:15)
- git-committer:
- Edward Z. Yang <ezyang@mit.edu> (06/22/11 21:56:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Facebook/lib/BarnOwl/Module/Facebook/Handle.pm
rf134488 r348cffc 144 144 } 145 145 146 sub die_on_error {147 my $self = shift;148 my $error = shift;149 150 die "$error" if $error;151 }152 153 146 sub poll_facebook { 154 147 my $self = shift; … … 178 171 ->as_hashref() 179 172 }; 180 $self->die_on_error($@); 173 if ($@) { 174 warn "Poll failed $@"; 175 return; 176 } 181 177 182 178 my $new_last_poll = $self->{last_poll};
Note: See TracChangeset
for help on using the changeset viewer.