Skip to content

Commit

Permalink
Catch and log HttpRequestException when ViewOperation fails
Browse files Browse the repository at this point in the history
Change-Id: I3484c9e26e207e2cf5a97151fa2458d8fe05c069
Reviewed-on: http://review.couchbase.org/41844
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>
  • Loading branch information
jeffrymorris committed Oct 3, 2014
1 parent fccad4f commit 59e642f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Src/Couchbase/Views/ViewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ public IViewResult<T> Execute<T>(IViewQuery query)
return true;
});
}
catch (HttpRequestException e)
{
ProcessError(e, viewResult);
Log.Error(e);
}
return viewResult;
}

Expand Down

0 comments on commit 59e642f

Please sign in to comment.