]> git.notmuchmail.org Git - notmuch/blobdiff - tag-util.c
cli: add missing \n in error message
[notmuch] / tag-util.c
index 3bde4097372ab827e91e23ff963f6c5413652f9b..343c161f471aa827ff186df01e7c24afe71e5d06 100644 (file)
@@ -31,14 +31,7 @@ line_error (tag_parse_status_t status,
     return status;
 }
 
-/*
- * Test tags for some forbidden cases.
- *
- * return: NULL if OK,
- *        explanatory message otherwise.
- */
-
-static const char *
+const char *
 illegal_tag (const char *tag, notmuch_bool_t remove)
 {
 
@@ -179,7 +172,7 @@ parse_tag_command_line (void *ctx, int argc, char **argv,
 
        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;
        }