summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2013-12-09 20:00:44 +0100
committerJan Lehnardt <jan@apache.org>2013-12-09 20:01:00 +0100
commit05d2f2983bb01522c8d9d9fd7735d20cc4bdb1a0 (patch)
treeb82e2e5323ed1789c5d5883c50331e0d19daacec
parent14cb47e54c46662849ca3d1d40e82f014eb7cce1 (diff)
downloadcouchdb-05d2f2983bb01522c8d9d9fd7735d20cc4bdb1a0.tar.gz
fix typo in error message
-rw-r--r--src/couchdb/couch_httpd_stats_handlers.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_stats_handlers.erl b/src/couchdb/couch_httpd_stats_handlers.erl
index 41aeaed0d..d6973f668 100644
--- a/src/couchdb/couch_httpd_stats_handlers.erl
+++ b/src/couchdb/couch_httpd_stats_handlers.erl
@@ -25,7 +25,7 @@ handle_stats_req(#httpd{method='GET', path_parts=[_]}=Req) ->
send_json(Req, couch_stats_aggregator:all(range(Req)));
handle_stats_req(#httpd{method='GET', path_parts=[_, _Mod]}) ->
- throw({bad_request, <<"Stat names must have exactly to parts.">>});
+ throw({bad_request, <<"Stat names must have exactly two parts.">>});
handle_stats_req(#httpd{method='GET', path_parts=[_, Mod, Key]}=Req) ->
flush(Req),