couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/2] fabric commit: updated refs/heads/master to 5b74e56
Date Wed, 16 Nov 2016 22:06:20 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master 9f82e5b84 -> 5b74e56a2


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/master
Commit: 9d12ad18086e9912a31148988acc5ad524689f60
Parents: 9f82e5b
Author: ILYA Khlopotov <iilyak@apache.org>
Authored: Wed Nov 16 13:57:29 2016 -0800
Committer: ILYA Khlopotov <iilyak@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 -> [];


Mime
View raw message