pouchdb-community / pouchdb-replication-stream

Replicate PouchDB/CouchDB databases with Node.js-style streams
Apache License 2.0
189 stars 58 forks source link

improve the error handling #55

Closed oliviertassinari closed 8 years ago

oliviertassinari commented 8 years ago

My issue

I want the load() API Promise to reject when the JSON is wrongly formatted. Right now, we have an error thown (async, can't be wrapped in a try/catch).

My solution

oliviertassinari commented 8 years ago

The build is now green 🍏 .

nolanlawson commented 8 years ago

Awesome pull request, love the new tests, thanks for the concise breakdown! Will merge and publish right now. :tada:

nolanlawson commented 8 years ago

Published in 1.2.8

oliviertassinari commented 8 years ago

Thanks for taking the time to review this PR 😄 .