]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
Add notmuch_status_to_string function.
[notmuch] / notmuch.c
index bc04bc1b7ea5c788fb36d610702a930ee60a31d3..e1409209e43694aca6f5896deb1f7484d9d3d2ac 100644 (file)
--- 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));
                }
            }