Skip to content

Commit

Permalink
friendly error message on use of count instead of limit
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@732420 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jchris committed Jan 7, 2009
1 parent aa48faa commit ef1e6a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/couchdb/couch_httpd_view.erl
Expand Up @@ -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"} ->
Expand Down

0 comments on commit ef1e6a1

Please sign in to comment.