]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-maildir-fcc.el
emacs: Fix to generate error if fcc directory is not a maildir
[notmuch] / emacs / notmuch-maildir-fcc.el
index 91c174c7a0afcf9ae644e3180a642f6e9bf7d5d2..64f60bc62bee9a23989da3104765831c19b89068 100644 (file)
@@ -111,8 +111,8 @@ if successful, nil if not."
           (write-file (concat destdir "/tmp/" msg-id))
           msg-id)
          (t
-          (message (format "Can't write to %s. Not a maildir."
-                    destdir))
+          (error (format "Can't write to %s. Not a maildir."
+                         destdir))
           nil))))
 
 (defun notmuch-maildir-fcc-move-tmp-to-new (destdir msg-id)