You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Luca Morandini (JIRA)" <ji...@apache.org> on 2014/08/11 10:46:11 UTC
[jira] [Created] (COUCHDB-2290) More descriptive message when a
design document's function is an empty string
Luca Morandini created COUCHDB-2290:
---------------------------------------
Summary: More descriptive message when a design document's function is an empty string
Key: COUCHDB-2290
URL: https://issues.apache.org/jira/browse/COUCHDB-2290
Project: CouchDB
Issue Type: Improvement
Security Level: public (Regular issues)
Components: JavaScript View Server
Reporter: Luca Morandini
When a view function, like the reduce one, is an empty string, like in:
{code}"by_type": {
"map": "function (doc) {\n if (doc.type) {\n emit(doc.org, doc);\n }\n}",
"reduce": ""
} {code}
the message shown in a message box and the logs is {code}"missing function"{code} ; while this is correct, it is not terribly useful to the user, something like:
{code}"function 'by_type: reduce' is not defined"{code}
would lead to quicker debugging.
--
This message was sent by Atlassian JIRA
(v6.2#6252)