Isn't that func inside a try already,  regardless we should be emiting an
error event at the least
On Mar 20, 2014 6:45 PM, "Nolan Lawson" <notifications@github.com> wrote:

> In index.js:
>
> >          current = {doc: doc.doc};
> > -        fun.map.call(null, doc.doc);
> > +        try {
> > +          fun.map.call(null, doc.doc);
> > +        } catch (err) {
> > +          logError('unexpected error in map function');
>
> Ditto, Couch just returns 0 results here.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/pouchdb/mapreduce/pull/68/files#r10820571>
> .
>