pouchdb/pouchdb — pull request #2545 by jacargentina (2014-07-30 16:46:28+00:00)
Title: Return better error when doc._id is not decodable with decodeURIComponent

I've had a case where a doc._id was badly encoded (contained a % sign).

When doing db.sync(), the error was very generic; looking at the originating stack, the culprit was `decodeURIComponent`

This commit fixes that, providing a new errors.MALFORMED_ID to handle that.