new: Print final fatal error message to stderr

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).
This commit is contained in:
Austin Clements 2012-04-22 11:50:51 -04:00 committed by David Bremner
parent d3b5533123
commit 746fef0aea

View file

@ -1035,8 +1035,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[])
printf ("\n"); printf ("\n");
if (ret) if (ret)
printf ("\nNote: A fatal error was encountered: %s\n", fprintf (stderr, "Note: A fatal error was encountered: %s\n",
notmuch_status_to_string (ret)); notmuch_status_to_string (ret));
notmuch_database_close (notmuch); notmuch_database_close (notmuch);