Skip to content

Commit

Permalink
GH-27: Don't try to extract rows for failed view request
Browse files Browse the repository at this point in the history
  • Loading branch information
mnunberg committed Oct 22, 2014
1 parent 887e97b commit 6265b04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Couchbase/View/Handle.pm
Expand Up @@ -216,9 +216,10 @@ sub slurp {
my ($self,@args) = @_;
$self->slurp_raw(@args);
$self->info->_extract_view_results;
foreach my $row (@{ $self->info->rows }) {
bless $row, 'Couchbase::View::Row';
if ($self->info && ref $self->info->rows eq 'ARRAY') {
bless $_, 'Couchbase::View::Row' for @{$self->info->rows};
}

return $self->info;
}

Expand Down

0 comments on commit 6265b04

Please sign in to comment.