Permalink
Browse files

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
  • Loading branch information...
1 parent aa48faa commit ef1e6a1c98ff0c2e2bb2789495c9d272f14078b8 @jchris jchris committed Jan 7, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 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"} ->

0 comments on commit ef1e6a1

Please sign in to comment.