diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-04-22 11:50:51 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-04-24 23:25:52 -0300 |
commit | 746fef0aeafe1f29720140ab8778cdee22d519cb (patch) | |
tree | f59302b143cf992bebe921f09f655a2f860fe34d /notmuch-new.c | |
parent | d3b5533123293fdc1e4177f42018f085c03585c9 (diff) |
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).
Diffstat (limited to 'notmuch-new.c')
-rw-r--r-- | notmuch-new.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-new.c b/notmuch-new.c index 2faf2f8..bf9b120 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1035,8 +1035,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[]) 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); |