Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D4AF3200C39 for ; Wed, 1 Mar 2017 17:38:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D3806160B88; Wed, 1 Mar 2017 16:38:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8F705160B8A for ; Wed, 1 Mar 2017 17:38:03 +0100 (CET) Received: (qmail 75018 invoked by uid 500); 1 Mar 2017 16:38:00 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 74472 invoked by uid 99); 1 Mar 2017 16:38:00 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2017 16:38:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6B27ADFE60; Wed, 1 Mar 2017 16:38:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kocolosk@apache.org To: commits@couchdb.apache.org Date: Wed, 01 Mar 2017 16:38:33 -0000 Message-Id: In-Reply-To: <925479a7649544f8927df3a0988e9cee@git.apache.org> References: <925479a7649544f8927df3a0988e9cee@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/50] fabric commit: updated refs/heads/2971-count-distinct to 5d18415 archived-at: Wed, 01 Mar 2017 16:38:05 -0000 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 Authored: Wed Nov 16 13:57:29 2016 -0800 Committer: ILYA Khlopotov 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 -> [];