Github user kxepal commented on a diff in the pull request:
https://github.com/apache/couchdb-couch/pull/86#discussion_r36910847
--- Diff: src/couch_query_servers.erl ---
@@ -41,7 +41,7 @@ try_compile(Proc, FunctionType, FunctionName,
FunctionSource) ->
catch {compilation_error, E} ->
Fmt = "Compilation of the ~s function in the '~s' view failed: ~s",
Msg = io_lib:format(Fmt, [FunctionType, FunctionName, E]),
- throw({compilation_error, Msg})
+ throw({bad_request, compilation_error, Msg})
--- End diff --
I think you should change `couch_db:validate_ddoc` instead. Because this
function may be called for the valid user request while complication will fail
and then CouchDB will lie again.
---
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.
---