You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by garrensmith <gi...@git.apache.org> on 2017/03/16 13:52:56 UTC

[GitHub] couchdb-fauxton issue #872: Invalid map/reduce functions do not show an erro...

GitHub user garrensmith opened an issue:

    https://github.com/apache/couchdb-fauxton/issues/872

    Invalid map/reduce functions do not show an error to the user

    Click: "Create view"
    as the map function put in valid javascript, but without the "function wrapper" from CouchDB:
    eg.
    if (doc.latin_name)
    { emit(doc.latin_name, doc.latin_name.length); }
    Couch returns
    {"error":"compilation_error","reason":"Compilation of the map function in the 'latin_name_jssum' view failed: Expression does not eval to a function. (\n if(doc.latin_name)
    {\n emit(doc.latin_name, doc.latin_name.length);\n }
    \n)"}
    but Fauxton does not show an error and the button is not pressable any more

----

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---