From 0580ed4c80bf4e8cf12bc47fb725ed78f043722d Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Thu, 10 Jan 2013 06:26:54 +0200 Subject: [PATCH] Re: [PATCH] cli: bail out and propagate tagging errors in notmuch tag --- 6b/c16c9a254d122c4015e738f3396e84f71aa86b | 73 +++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 6b/c16c9a254d122c4015e738f3396e84f71aa86b diff --git a/6b/c16c9a254d122c4015e738f3396e84f71aa86b b/6b/c16c9a254d122c4015e738f3396e84f71aa86b new file mode 100644 index 000000000..16b0d7594 --- /dev/null +++ b/6b/c16c9a254d122c4015e738f3396e84f71aa86b @@ -0,0 +1,73 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id C0C36431FB6 + for ; Wed, 9 Jan 2013 20:27:04 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id HgR7NgosdwGL for ; + Wed, 9 Jan 2013 20:27:04 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id D4E76431FAF + for ; Wed, 9 Jan 2013 20:27:03 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id C8A5F1000D0; + Thu, 10 Jan 2013 06:26:54 +0200 (EET) +From: Tomi Ollila +To: David Bremner , Jani Nikula , + notmuch@notmuchmail.org +Subject: Re: [PATCH] cli: bail out and propagate tagging errors in notmuch tag +In-Reply-To: <87fw29wwzp.fsf@zancas.localnet> +References: <1357681314-29384-1-git-send-email-jani@nikula.org> + <87fw29wwzp.fsf@zancas.localnet> +User-Agent: Notmuch/0.14+259~g287394f (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 10 Jan 2013 04:27:04 -0000 + +On Thu, Jan 10 2013, David Bremner wrote: + +> Jani Nikula writes: +>> + if (ret) +>> + break; +> +> I amended this to (ret != NOTMUCH_STATUS_SUCCESS) +> +> There are a few different families of status codes flying around here, +> and I liked the extra documentation. + +That sure is a good point, should follow-up patch do this: + +- int ret = 0; ++ int ret = NOTMUCH_STATUS_SUCCESS; + +? + +> d + +Tomi -- 2.26.2