From 691908d1fa774ea8f90f44f0185d40c75a60c1f2 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 15 Jun 2010 11:57:46 -0400 Subject: throw conflicts just like couch_db.erl --- src/fabric.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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)). -- cgit v1.2.3