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 616AA431FBF for ; Sun, 22 Apr 2012 08:51:00 -0700 (PDT) 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 fEsTfXtWZJQK for ; Sun, 22 Apr 2012 08:50:59 -0700 (PDT) Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU [18.9.25.12]) by olra.theworths.org (Postfix) with ESMTP id 3BD18431FAF for ; Sun, 22 Apr 2012 08:50:59 -0700 (PDT) X-AuditID: 1209190c-b7fad6d000000920-e0-4f9428e2c75b Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id 14.1F.02336.2E8249F4; Sun, 22 Apr 2012 11:50:58 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q3MFovlQ009854; Sun, 22 Apr 2012 11:50:57 -0400 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 q3MFou5m003694 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 22 Apr 2012 11:50:57 -0400 (EDT) Received: from amthrax by drake.mit.edu with local (Exim 4.77) (envelope-from ) id 1SLz3w-0002fG-KB; Sun, 22 Apr 2012 11:50:56 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH v3 3/4] new: Print final fatal error message to stderr Date: Sun, 22 Apr 2012 11:50:51 -0400 Message-Id: <1335109852-10150-4-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1335109852-10150-1-git-send-email-amdragon@mit.edu> References: <1330357759-1337-1-git-send-email-amdragon@mit.edu> <1335109852-10150-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsUixCmqrPtIY4q/wa0dehbXb85kdmD0eLbq FnMAYxSXTUpqTmZZapG+XQJXxt/1d9gK1rBVLNiyk62BsZ21i5GTQ0LARKLjzRwmCFtM4sK9 9WxdjFwcQgL7GCU6Hv9nhXA2MErsmv2bEcK5zyTx5cQrFghnPqPEyzu/wPrZBDQktu1fzghi iwhIS+y8OxuonYODWUBN4k+XCkhYWMBN4tjLu8wgNouAqsTpC7dYQGxeAQeJv3MPQZ2hIPFs 3XEwm1PAUeLju5VgtpBAmcS3eW/ZJzDyL2BkWMUom5JbpZubmJlTnJqsW5ycmJeXWqRrqJeb WaKXmlK6iREcNpI8OxjfHFQ6xCjAwajEw/vKZLK/EGtiWXFl7iFGSQ4mJVFeN7Up/kJ8Sfkp lRmJxRnxRaU5qcWHGCU4mJVEeD+LAJXzpiRWVqUW5cOkpDlYlMR5VbTe+QkJpCeWpGanphak FsFkZTg4lCR4zYHxISRYlJqeWpGWmVOCkGbi4AQZzgM03Bqkhre4IDG3ODMdIn+KUVFKnFcZ JCEAksgozYPrhcX1K0ZxoFeEecVBqniAKQGu+xXQYCagwQkxk0AGlyQipKQaGPN3XPPMk7DY o2xZx3mkltfi675yq4zLGjcmM61UEK69cZnt38f4ijXVRo7FgT+kCvN3LttnceOjh0uBfoWo ZlpJg+YTzkPeF86emr3uWnzqJ8uoZx/ZLqtc/3LzASvXTcYIMd0NZUvK6wJOnpxxetfaLUqL Xh0UP1zMd0fA0U2NJfmEpqnNQSWW4oxEQy3mouJEALGoeQzGAgAA 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: Sun, 22 Apr 2012 15:51:00 -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 2faf2f8..bf9b120 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1035,8 +1035,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.9.1