Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2290

More descriptive message when a design document's function is an empty string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • JavaScript View Server
    • None

    Description

      When a view function, like the reduce one, is an empty string, like in:

      "by_type": {
             "map": "function (doc) {\n    if (doc.type) {\n        emit(doc.org, doc);\n    }\n}",
             "reduce": ""
         } 

      the message shown in a message box and the logs is

      "missing function"

      ; while this is correct, it is not terribly useful to the user, something like:

      "function 'by_type: reduce' is not defined"

      would lead to quicker debugging.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lmorandini Luca Morandini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: