From ef1e6a1c98ff0c2e2bb2789495c9d272f14078b8 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 7 Jan 2009 18:33:51 +0000 Subject: friendly error message on use of count instead of limit git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@732420 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_view.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl index 79f275c9..de184de9 100644 --- a/src/couchdb/couch_httpd_view.erl +++ b/src/couchdb/couch_httpd_view.erl @@ -254,6 +254,8 @@ parse_view_query(Req, Keys, IsReduce) -> Msg = io_lib:format("Bad URL query value, number expected: limit=~s", [Value]), throw({query_parse_error, Msg}) end; + {"count", Value} -> + throw({query_parse_error, "URL query parameter 'count' has been changed to 'limit'."}); {"update", "false"} -> Args#view_query_args{update=false}; {"descending", "true"} -> -- cgit v1.2.3