diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fabric.erl | 7 |
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)). |