Improve illegal_database_name error message
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/5b099840 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/5b099840 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/5b099840 Branch: refs/heads/import Commit: 5b0998400bdcace82c0eaab880f470f7394684ff Parents: de6ab30 Author: Adam Kocoloski <a...@cloudant.com> Authored: Wed Jun 1 15:16:03 2011 -0400 Committer: Robert Newson <robert.new...@cloudant.com> Committed: Wed Mar 6 12:23:14 2013 -0600 ---------------------------------------------------------------------- src/chttpd.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/5b099840/src/chttpd.erl ---------------------------------------------------------------------- diff --git a/src/chttpd.erl b/src/chttpd.erl index 216100b..b7f8013 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -696,9 +696,9 @@ error_info({bad_ctype, Reason}) -> error_info(requested_range_not_satisfiable) -> {416, <<"requested_range_not_satisfiable">>, <<"Requested range not satisfiable">>}; 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">>}; + {400, <<"illegal_database_name">>, <<"Only lowercase letters (a-z), " + "digits (0-9), and any of the characters _, $, (, ), +, -, and / are " + "allowed. Moreover, the database name must begin with a letter.">>}; error_info({missing_stub, Reason}) -> {412, <<"missing_stub">>, Reason}; error_info(not_implemented) ->