fix typo in error message
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/05d2f298 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/05d2f298 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/05d2f298 Branch: refs/heads/1744-single-config-file Commit: 05d2f2983bb01522c8d9d9fd7735d20cc4bdb1a0 Parents: 14cb47e Author: Jan Lehnardt <[email protected]> Authored: Mon Dec 9 20:00:44 2013 +0100 Committer: Jan Lehnardt <[email protected]> Committed: Mon Dec 9 20:01:00 2013 +0100 ---------------------------------------------------------------------- src/couchdb/couch_httpd_stats_handlers.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/05d2f298/src/couchdb/couch_httpd_stats_handlers.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_httpd_stats_handlers.erl b/src/couchdb/couch_httpd_stats_handlers.erl index 41aeaed..d6973f6 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),
