[PATCH] cli: add missing \n in error message
authorJani Nikula <jani@nikula.org>
Tue, 4 Mar 2014 16:51:54 +0000 (18:51 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:19 +0000 (10:00 -0800)
08/930e8ae091a7c523f011ef4d91fe8a676935d0 [new file with mode: 0644]

diff --git a/08/930e8ae091a7c523f011ef4d91fe8a676935d0 b/08/930e8ae091a7c523f011ef4d91fe8a676935d0
new file mode 100644 (file)
index 0000000..25067da
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7B39D431FBF\r
+       for <notmuch@notmuchmail.org>; Tue,  4 Mar 2014 08:52:05 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id DIRx3MNTfM6K for <notmuch@notmuchmail.org>;\r
+       Tue,  4 Mar 2014 08:52:01 -0800 (PST)\r
+Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com\r
+ [74.125.83.52])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ DDDA4431FBD   for <notmuch@notmuchmail.org>; Tue,  4 Mar 2014 08:52:00 -0800\r
+ (PST)\r
+Received: by mail-ee0-f52.google.com with SMTP id e49so1591844eek.11\r
+       for <notmuch@notmuchmail.org>; Tue, 04 Mar 2014 08:51:58 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+       :references;\r
+       bh=kWRy6qsZLDKu+nYEPfgkDipaqQGw1PC76zzJcRQD4AA=;\r
+       b=D0T0lC8te13SM1Re8iqwu6dcT/Ehx0W9e6XLwFPYCDj0PQ0ZhXiNrWldFn2YJjwYZ+\r
+       Vn+WahSSZiJvSD84feynTTwpkTA/zfTYVuKwjzRBtH4o5dhYHE77BxDgPHPeZFNEl1L+\r
+       BOzfIO9zmsjeLbHLlF/8xeq4ixs6VdCfbTdLuD/mhehQI0e65G6Xt2YZz2m8sO2ar6Y1\r
+       jurAAkxImKipasylOQZTehrSjPk3BzeWTPl3t31iJvYG0GID8lmNE07mTTpGXZxHtkud\r
+       hni10e+Yp03M7+199TJ3AUKUTU/vSobAvbGjYAz9cbbJXZbF4mV72WAuCgep+wezXYNQ\r
+       F6sQ==\r
+X-Gm-Message-State:\r
+ ALoCoQmRXJmucBYjlDLjeWHu/T8R+PgGPiJHQDO3GW09O75C4vD8Y2rOYkanzEp3/6kl0J+x1q7f\r
+X-Received: by 10.14.194.133 with SMTP id m5mr597479een.38.1393951917074;\r
+       Tue, 04 Mar 2014 08:51:57 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id u6sm65157994eep.11.2014.03.04.08.51.55\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Tue, 04 Mar 2014 08:51:56 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] cli: add missing \n in error message\r
+Date: Tue,  4 Mar 2014 18:51:54 +0200\r
+Message-Id: <1393951914-26742-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.8.5.3\r
+In-Reply-To: <m21tytu1tk.fsf@guru.guru-group.fi>\r
+References: <m21tytu1tk.fsf@guru.guru-group.fi>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 04 Mar 2014 16:52:05 -0000\r
+\r
+The error messages returned by illegal_tag() don't contain newlines.\r
+---\r
+ tag-util.c | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/tag-util.c b/tag-util.c\r
+index e2d5b795acc3..343c161f471a 100644\r
+--- a/tag-util.c\r
++++ b/tag-util.c\r
+@@ -172,7 +172,7 @@ parse_tag_command_line (void *ctx, int argc, char **argv,\r
\r
+       msg = illegal_tag (argv[i] + 1, is_remove);\r
+       if (msg) {\r
+-          fprintf (stderr, "Error: %s", msg);\r
++          fprintf (stderr, "Error: %s\n", msg);\r
+           return TAG_PARSE_INVALID;\r
+       }\r
\r
+-- \r
+1.8.5.3\r
+\r