couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r732420 - /couchdb/trunk/src/couchdb/couch_httpd_view.erl
Date Wed, 07 Jan 2009 18:33:51 GMT
Author: jchris
Date: Wed Jan  7 10:33:51 2009
New Revision: 732420

URL: http://svn.apache.org/viewvc?rev=732420&view=rev
Log:
friendly error message on use of count instead of limit

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_view.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_view.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_view.erl?rev=732420&r1=732419&r2=732420&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_view.erl Wed Jan  7 10:33:51 2009
@@ -254,6 +254,8 @@
                 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"} ->



Mime
View raw message