I left it in to catch the bug in the future, but I'm not sure if I can come
up with a test,  but if you ever break an adapter in such a way that.  _get
doesn't return a document than this will save you quite a bit of time.
On Apr 8, 2014 5:04 PM, "Nolan Lawson" <notifications@github.com> wrote:

> In lib/adapter.js:
>
> > @@ -469,6 +469,9 @@ AbstractPouchDB.prototype.get =
> >      }
> >
> >      var doc = result.doc;
> > +    if (!doc) {
> > +      return callback(new Error('no doc!'));
>
> The tests pass without it.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/pouchdb/pouchdb/pull/1734/files#r11411606>
> .
>