summaryrefslogtreecommitdiff
path: root/src/fabric.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-15 11:57:46 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-06-15 11:57:46 -0400
commit691908d1fa774ea8f90f44f0185d40c75a60c1f2 (patch)
tree0a2039af87c8537872df42e1feed05914445085c /src/fabric.erl
parent9692364437c47ef9e13607e996112839f4f48876 (diff)
throw conflicts just like couch_db.erl
Diffstat (limited to 'src/fabric.erl')
-rw-r--r--src/fabric.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fabric.erl b/src/fabric.erl
index 5abb17e3..afa87082 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -56,7 +56,12 @@ get_missing_revs(DbName, IdsRevs) when is_list(IdsRevs) ->
update_doc(DbName, Doc, Options) ->
{ok, [Result]} = update_docs(DbName, [Doc], opts(Options)),
- Result.
+ case Result of
+ {ok, _} ->
+ Result;
+ Error ->
+ throw(Error)
+ end.
update_docs(DbName, Docs, Options) ->
fabric_doc_update:go(dbname(DbName), docs(Docs), opts(Options)).