mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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:
parent
d3b5533123
commit
746fef0aea
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue