Comment 3 for bug 1370115

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

The amount of errors wrappers.installWrapperMethods can throw (same for the static variant) is quite limited. It's a function that doesn't call anything other than a few helper functions inside pouchdb-wrappers itself, and all the code it consists of is 100% covered by the tests. I'm pretty confident that when it throws, that's the one. But, for future debugability, I'll add a check for err.name === "Error" (or something more specific). That should be enough to stop any other error the function can possibly produce from behing caught.