You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2016/11/16 22:06:20 UTC

[1/2] fabric commit: updated refs/heads/master to 5b74e56

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 <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 -> [];


[2/2] fabric commit: updated refs/heads/master to 5b74e56

Posted by ii...@apache.org.
Merge remote branch 'cloudant:fix-typespecs'

This closes #79

Signed-off-by: ILYA Khlopotov <ii...@apache.org>


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

Branch: refs/heads/master
Commit: 5b74e56a2eb44e25e33dc984bdfc470688f447eb
Parents: 9f82e5b 9d12ad1
Author: ILYA Khlopotov <ii...@apache.org>
Authored: Wed Nov 16 14:06:06 2016 -0800
Committer: ILYA Khlopotov <ii...@apache.org>
Committed: Wed Nov 16 14:06:06 2016 -0800

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