org-icalendar-export-agenda-files: Report file name when export fails
* lisp/ox-icalendar.el (org-icalendar-export-agenda-files): When export fails, display warning listing the error and the problematic file.
This commit is contained in:
parent
64049aaddc
commit
ba747598c6
|
@ -1142,7 +1142,13 @@ external process."
|
|||
(catch 'nextfile
|
||||
(org-check-agenda-file file)
|
||||
(with-current-buffer (org-get-agenda-file-buffer file)
|
||||
(org-icalendar-export-to-ics))))
|
||||
(condition-case err
|
||||
(org-icalendar-export-to-ics)
|
||||
(error
|
||||
(warn "Exporting %s to icalendar failed: %s"
|
||||
file
|
||||
(error-message-string err))
|
||||
(signal (car err) (cdr err)))))))
|
||||
(org-release-buffers org-agenda-new-buffers)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Reference in New Issue