You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2018/07/17 15:48:09 UTC

[couchdb] 01/02: Improve accuracy of error message

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4fef53ce7423ce20c699918cd727f92454a900b7
Author: Robert Newson <rn...@apache.org>
AuthorDate: Tue Jul 17 13:47:02 2018 +0100

    Improve accuracy of error message
---
 src/couch_mrview/src/couch_mrview_util.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_mrview/src/couch_mrview_util.erl b/src/couch_mrview/src/couch_mrview_util.erl
index 9f11a89..c37dde5 100644
--- a/src/couch_mrview/src/couch_mrview_util.erl
+++ b/src/couch_mrview/src/couch_mrview_util.erl
@@ -557,13 +557,13 @@ validate_args(Args) ->
 
     case {Args#mrargs.partitioned == true, Args#mrargs.partition} of
         {true, undefined} ->
-            mrverror(<<"`partition` parameter is mandatory for queries to this database.">>);
+            mrverror(<<"`partition` parameter is mandatory for queries to this view.">>);
         {true, _Partition} ->
             ok;
         {false, undefined} ->
             ok;
         {false, _Partition} ->
-            mrverror(<<"`partition` parameter is not supported in this database.">>)
+            mrverror(<<"`partition` parameter is not supported in this view.">>)
     end,
     Args.