From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A8379431FBC for ; Mon, 27 Feb 2012 07:49:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 AcNJ7Zuu217Q for ; Mon, 27 Feb 2012 07:49:29 -0800 (PST) Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU [18.7.68.35]) by olra.theworths.org (Postfix) with ESMTP id B7649431FBD for ; Mon, 27 Feb 2012 07:49:28 -0800 (PST) X-AuditID: 12074423-b7f9c6d0000008c3-e3-4f4ba6089830 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id F3.4D.02243.806AB4F4; Mon, 27 Feb 2012 10:49:28 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q1RFnSXn000953; Mon, 27 Feb 2012 10:49:28 -0500 Received: from drake.mit.edu (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q1RFnRRt003401 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 27 Feb 2012 10:49:28 -0500 (EST) Received: from amthrax by drake.mit.edu with local (Exim 4.77) (envelope-from ) id 1S22pK-0000NC-U7; Mon, 27 Feb 2012 10:49:27 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 3/3] new: Print final fatal error message to stderr Date: Mon, 27 Feb 2012 10:49:19 -0500 Message-Id: <1330357759-1337-4-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1330357759-1337-1-git-send-email-amdragon@mit.edu> References: <1330357759-1337-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nosuxzNvf4PQ9OYvrN2cyOzB6PFt1 izmAMYrLJiU1J7MstUjfLoErY8qmc4wFa9gqFnydztbA2M7axcjJISFgIjHp4BYmCFtM4sK9 9WxdjFwcQgL7GCVeLXzHDuFsYJRY8HgzM4Rzn0li7q1pUGXzGSXm/t3HBtLPJqAhsW3/ckYQ W0RAWmLn3dlAOzg4mAXUJP50qYCEhQWcJXad/sIGEmYRUJWYMasQJMwrYC+x9dpGZogrFCTO rT7HDmJzCjhIvFzzF2y6EFDNonNnmCcw8i9gZFjFKJuSW6Wbm5iZU5yarFucnJiXl1qka6aX m1mil5pSuokRHDQuyjsY/xxUOsQowMGoxMNbPMvbX4g1say4MvcQoyQHk5Ior+cSoBBfUn5K ZUZicUZ8UWlOavEhRgkOZiURXv1soBxvSmJlVWpRPkxKmoNFSZxXQ+udn5BAemJJanZqakFq EUxWhoNDSYLXZylQo2BRanpqRVpmTglCmomDE2Q4D9BwU5Aa3uKCxNzizHSI/ClGRSlxXj+Q hABIIqM0D64XFtWvGMWBXhHmtQSp4gEmBLjuV0CDmYAGB3CCDS5JREhJNTCGBAYVx7+OE9+9 Mv8c842syOkhn/d9q2CtDH8vEPhF/seT4I285putzNfuOjPvnwbj3PvPVnql7eF/OqNgwsNl 01pFTya39lQ0Cwn6fpP/vOgd76y1QWpbN65juLngZRbfdKGSjeEfPs00cVWw/7hu5uGkuX1R 8hZvXA7c7lpzhXdC6e6ZT06bKLEUZyQaajEXFScCAFZT7YvFAgAA 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: Mon, 27 Feb 2012 15:49:29 -0000 This was going to stdout. I removed the newline at the beginning of printing the fatal error message because it wouldn't make sense if you were only looking at the stderr stream (e.g., you had redirected stdout to /dev/null). --- notmuch-new.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 0cbd479..9ad790d 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1029,8 +1029,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[]) printf ("\n"); if (ret) - printf ("\nNote: A fatal error was encountered: %s\n", - notmuch_status_to_string (ret)); + fprintf (stderr, "Note: A fatal error was encountered: %s\n", + notmuch_status_to_string (ret)); notmuch_database_close (notmuch); -- 1.7.7.3