diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-29 06:05:01 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-29 06:05:01 +0000 |
commit | 92b5780638312375e049269e77f1d41a0d5a9f67 (patch) | |
tree | 70f50026e4a27fb1f135fda9687c1e53890abf0c /src | |
parent | 35809c88d6deea2b55f841e8e8a76e4900525bf0 (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/branches/1.0.x@980320 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_db.erl | 2 |
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, []} -> |