Github user tonysun83 commented on the issue:
https://github.com/apache/couchdb-couch/pull/229
@iilyak : The only two error types I can think of are when the input value
is invalid and also what @kxepal mentioned (the map function errors) which I
forgot to take care of. In any case, I think if there are multiple reduces,
then there would be multiple error rows per reduce call
```
{
"rows": [
{
"key": null,
"value": {
"key": [],
"value": <some_value>
"builtin_reduce_error":...."
},
{
"key": null,
"value": {
"key": [],
"value": <some_value>
"builtin_reduce_error":...."
},
]
}
```
What about the following response format:
```
{
"rows": [
{
"key": null,
"value": {
"error": {"builtin_reduce_error": { "key" : <some_key>,
"value": <some_value>}
},
]
}
```
So if it is from a map function then it would be:
```
{
"rows": [
{
"key": null,
"value": {
"error": {"builtin_reduce_error": { "key" : 1, "value":
"not_found"}
},
]
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---