aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-21 16:12:53 -0700
committerCarl Worth <cworth@cworth.org>2009-10-21 16:12:53 -0700
commit302d54834d090d7e62377883f36dc709c95e5673 (patch)
tree4349f104408f0963ae520020b13b7623085af21a /notmuch.c
parentf232f0a797b4fb657e630ca4bd664f9dcfe90dac (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/notmuch.c b/notmuch.c
index bc04bc1..e140920 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -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));
}
}