Issue
How to parse the "catch" objects?
Info
- Environment: Browser
- Platform: All
- Adapter: probably indexeddb
- Server: CouchDB
Reproduce
Briefly, in my application (https://emissionsystem.org) which uses straight javascript, pouchdb, and a couchdb server (albeit with SSL), I try to follow good practice and use a catch clause in all my pouchdb promises. Example:
db.get("patient").
.then(.....)
.catch(err => process(err))
Is there a consistent format for "err"? Sometimes I see err.message for a text description, but I'm not sure it's a pervasive pattern.
My hope is to provide useful feedback to users and make my application more robust.
Issue
How to parse the "catch" objects?
Info
Reproduce
Briefly, in my application (https://emissionsystem.org) which uses straight javascript, pouchdb, and a couchdb server (albeit with SSL), I try to follow good practice and use a catch clause in all my pouchdb promises. Example:
Is there a consistent format for "err"? Sometimes I see err.message for a text description, but I'm not sure it's a pervasive pattern.
My hope is to provide useful feedback to users and make my application more robust.