couch-client icon indicating copy to clipboard operation
couch-client copied to clipboard

Test & error handling

Open flashingpumpkin opened this issue 14 years ago • 3 comments

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

flashingpumpkin avatar Dec 08 '10 17:12 flashingpumpkin

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

michael avatar Dec 17 '10 20:12 michael

@devioustree Should this pull request be closed? Looks like it on a quick glance.

candland avatar Feb 24 '11 05:02 candland

Fixed this in my fork, among other things. See https://github.com/michael/couch-client/commit/011698b10a5d21ab43d86aa277884f92b48e24ed

michael avatar Feb 27 '11 20:02 michael