summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_db.erl
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-29 06:04:03 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-29 06:04:03 +0000
commitdd60d8187d7fcaa1479a74e870e8e74f6c83843d (patch)
tree361808e2d0cb6134338d973ea7f725c7466597e1 /src/couchdb/couch_db.erl
parentdb9eca521fc4d739c87b72fdc62e702176bea618 (diff)
fix the underlying issue that was giving replication problems attempting to push design docs as a non-admin. this is what my reverted commit should have been
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r--src/couchdb/couch_db.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index 80f0d7bf..34b4f3fb 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -368,6 +368,8 @@ update_doc(Db, Doc, Options, UpdateType) ->
case update_docs(Db, [Doc], Options, UpdateType) of
{ok, [{ok, NewRev}]} ->
{ok, NewRev};
+ {ok, [{{_Id, _Rev}, Error}]} ->
+ throw(Error);
{ok, [Error]} ->
throw(Error);
{ok, []} ->