diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-11-09 20:08:43 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-11-09 20:08:43 +0000 |
commit | a641d97c1b7cff839ee7fb0681fc84ef582b0a38 (patch) | |
tree | 99ed8aef09536294394029dc93146448af350d9d /src | |
parent | 698f34752af9472751fc994065282f629667d034 (diff) |
better error for illegal_database_name. Closes COUCHDB-566
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@834211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_httpd.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index 7b876cfa..a49b4a4d 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -554,6 +554,10 @@ error_info(file_exists) -> "created, the file already exists.">>}; error_info({bad_ctype, Reason}) -> {415, <<"bad_content_type">>, Reason}; +error_info({error, illegal_database_name}) -> + {400, <<"illegal_database_name">>, <<"Only lowercase characters (a-z), " + "digits (0-9), and any of the characters _, $, (, ), +, -, and / " + "are allowed">>}; error_info({Error, Reason}) -> {500, couch_util:to_binary(Error), couch_util:to_binary(Reason)}; error_info(Error) -> |