]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
new: Print final fatal error message to stderr
[notmuch] / notmuch-new.c
index 2faf2f8e01029d4b933aa9041d3d7be7a5a40f6d..bf9b120949b6697650a681eb5c566b0e97bbfccb 100644 (file)
@@ -1035,8 +1035,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[])
     printf ("\n");
 
     if (ret)
     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);
 
 
     notmuch_database_close (notmuch);