Open rmehner opened 8 years ago
So we've been using Hoodie in a project like this:
hoodie.store.updateOrAdd({artist: 'Shellac', title: 'Riding Bikes'})
and ran into the following Pouch error which left us a bit baffled for the moment:
Quickly looking up into the code it was clear what happens, but then I was confused because in hoodie-store-client there's code that handles that case and returns a more friendly error message: https://github.com/hoodiehq/hoodie-store-client/blob/e850a59e6e9b5266866b0f9ca1a0f703ce55aa60/lib/scoped/update-or-add.js#L28-L32
hoodie-store-client
Should pouchdb-hoodie-api behave the same?
pouchdb-hoodie-api
yes, I’m already working on this
So we've been using Hoodie in a project like this:
and ran into the following Pouch error which left us a bit baffled for the moment:
Quickly looking up into the code it was clear what happens, but then I was confused because in
hoodie-store-client
there's code that handles that case and returns a more friendly error message: https://github.com/hoodiehq/hoodie-store-client/blob/e850a59e6e9b5266866b0f9ca1a0f703ce55aa60/lib/scoped/update-or-add.js#L28-L32Should
pouchdb-hoodie-api
behave the same?