summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-07 18:33:51 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-07 18:33:51 +0000
commitef1e6a1c98ff0c2e2bb2789495c9d272f14078b8 (patch)
tree3cc5ef3d95316e0bffdc590a5b63a2da2239f9c2 /src/couchdb
parentaa48faa19166a1f31d3f2ba6a7c28cc7535b7c6d (diff)
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
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd_view.erl2
1 files changed, 2 insertions, 0 deletions
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"} ->