]> git.notmuchmail.org Git - notmuch/commitdiff
cli: add missing \n in error message
authorJani Nikula <jani@nikula.org>
Tue, 4 Mar 2014 16:51:54 +0000 (18:51 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 6 Mar 2014 11:46:27 +0000 (07:46 -0400)
The error messages returned by illegal_tag() don't contain newlines.

tag-util.c

index e2d5b795acc30c35afb2c6ac62e750165ed8f128..343c161f471aa827ff186df01e7c24afe71e5d06 100644 (file)
@@ -172,7 +172,7 @@ parse_tag_command_line (void *ctx, int argc, char **argv,
 
        msg = illegal_tag (argv[i] + 1, is_remove);
        if (msg) {
 
        msg = illegal_tag (argv[i] + 1, is_remove);
        if (msg) {
-           fprintf (stderr, "Error: %s", msg);
+           fprintf (stderr, "Error: %s\n", msg);
            return TAG_PARSE_INVALID;
        }
 
            return TAG_PARSE_INVALID;
        }