You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2021/05/04 14:51:58 UTC

[couchdb] branch main updated: Add clause for unknown_eval_api_language

This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 7b71b4a  Add clause for unknown_eval_api_language
     new 4b863d5  Merge pull request #3540 from cloudant/handle-unknown_eval_api_language-error-message
7b71b4a is described below

commit 7b71b4afa21036ed696b3cce45ae341791c34540
Author: ILYA Khlopotov <ii...@apache.org>
AuthorDate: Tue May 4 06:39:51 2021 -0700

    Add clause for unknown_eval_api_language
---
 src/chttpd/src/chttpd.erl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index 55a47c9..53fdf98 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -1070,6 +1070,9 @@ error_info(not_ciphertext) ->
     {500, <<"not_ciphertext">>, <<"Not Ciphertext">>};
 error_info({service_unavailable, Reason}) ->
     {503, <<"service unavailable">>, Reason};
+error_info({unknown_eval_api_language, Language}) ->
+    {400, <<"unknown_eval_api_language">>, <<"unsupported language in design"
+        " doc: `", Language/binary, "`">>};
 error_info({timeout, _Reason}) ->
     error_info(timeout);
 error_info({Error, null}) ->