[ 
https://issues.apache.org/jira/browse/COUCHDB-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Garren Smith closed COUCHDB-2786.
---------------------------------
    Resolution: Fixed

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

> Invalid map/reduce functions do not show an error to the user
> -------------------------------------------------------------
>
>                 Key: COUCHDB-2786
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2786
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Fauxton
>            Reporter: Robert Kowalski
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to