ReactiveMongo/ReactiveMongo — pull request #191 by bfaissal (2014-08-08 06:04:49+00:00)
Title: Fix for error propagation problem on enumerator created by cursor[T].enumerate()

Let say we have a collection and we want to take some docs from it by applying an iteratee, we also want it to stop and return a failure future if there is an error, here is the code

```
collection.find(query).sort(Json.obj(("title" -> 1))).cursor[JsObject]
.enumerate(10,true).run(iteratee)
```

If an error occurs at the iteratee level the result of this code will hangs and the future will not complete at all.

This pull request solve the problem on Cursor.enumerate method to make the returned enumerator propagate the failure correctly.

I've already posted a question about this problem on http://stackoverflow.com/questions/24855594/reactivemongo-how-to-handle-an-exception-that-happens-inside-iteratee-fold