diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-21 16:12:53 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-21 16:12:53 -0700 |
commit | 302d54834d090d7e62377883f36dc709c95e5673 (patch) | |
tree | 4349f104408f0963ae520020b13b7623085af21a /notmuch.c | |
parent | f232f0a797b4fb657e630ca4bd664f9dcfe90dac (diff) |
Add notmuch_status_to_string function.
Be kind and let the user print error messages, not just error
codes.
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -527,8 +527,11 @@ restore_command (int argc, char *argv[]) continue; status = notmuch_message_add_tag (message, tag); if (status) { - fprintf (stderr, "Error applying tag %s to message %s.\n", + fprintf (stderr, + "Error applying tag %s to message %s:\n", tag, message_id); + fprintf (stderr, "%s\n", + notmuch_status_to_string (status)); } } |