couch-client
couch-client copied to clipboard
Test & error handling
The view function didn't handle errors properly. Now it actually looks at the content returned before calling the callback. Also, I adopted a queue for views. :-o
Had the same problem.
Flashingpumpkin: Not sure if Tim would rather prefer delivering the original error object { error: 'not_found', reason: 'missing_named_view' }
instead of a modified one, in order to keep the code-base super-small.
Thx for the patch anyway :)
-- Michael
@devioustree Should this pull request be closed? Looks like it on a quick glance.
Fixed this in my fork, among other things. See https://github.com/michael/couch-client/commit/011698b10a5d21ab43d86aa277884f92b48e24ed