You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2017/03/01 16:38:33 UTC

[35/50] fabric commit: updated refs/heads/2971-count-distinct to 5d18415

Add `{error, Reason}` to typespecs

`fabric:design_docs/1` and `all_docs/5` can return `{error, Reason}`


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/9d12ad18
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/9d12ad18
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/9d12ad18

Branch: refs/heads/2971-count-distinct
Commit: 9d12ad18086e9912a31148988acc5ad524689f60
Parents: 9f82e5b
Author: ILYA Khlopotov <ii...@apache.org>
Authored: Wed Nov 16 13:57:29 2016 -0800
Committer: ILYA Khlopotov <ii...@apache.org>
Committed: Wed Nov 16 14:05:19 2016 -0800

----------------------------------------------------------------------
 src/fabric.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/9d12ad18/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index bea140d..05eed7e 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -291,7 +291,7 @@ all_docs(DbName, Callback, Acc, QueryArgs) ->
 -spec all_docs(
         dbname(), [{atom(), any()}], callback(), [] | tuple(),
         #mrargs{} | [option()]) ->
-    {ok, any()}.
+    {ok, any()} | {error, Reason :: term()}.
 
 all_docs(DbName, Options, Callback, Acc0, #mrargs{} = QueryArgs) when
         is_function(Callback, 2) ->
@@ -406,7 +406,7 @@ end_changes() ->
     fabric_view_changes:increment_changes_epoch().
 
 %% @doc retrieve all the design docs from a database
--spec design_docs(dbname()) -> {ok, [json_obj()]}.
+-spec design_docs(dbname()) -> {ok, [json_obj()]} | {error, Reason :: term()}.
 design_docs(DbName) ->
     Extra = case get(io_priority) of
         undefined -> [];