diff options
author | iilyak <iilyak@users.noreply.github.com> | 2021-05-04 07:51:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 07:51:46 -0700 |
commit | 4b863d50f6acffcbbf1a4d1f7f665eb5611bf92b (patch) | |
tree | 28f9392f9bf0fcc4158301ca17384e308e3cd6ce | |
parent | b0595740890ee94957c538734b088b2d8282f409 (diff) | |
parent | 7b71b4afa21036ed696b3cce45ae341791c34540 (diff) | |
download | couchdb-4b863d50f6acffcbbf1a4d1f7f665eb5611bf92b.tar.gz |
Merge pull request #3540 from cloudant/handle-unknown_eval_api_language-error-message
Add clause for unknown_eval_api_language
-rw-r--r-- | src/chttpd/src/chttpd.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl index 55a47c902..53fdf989a 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}) -> |