emacs-citar / citar

Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents.
GNU General Public License v3.0
479 stars 53 forks source link

Add error handling for citar-bibliography #765

Closed bdarcus closed 1 year ago

bdarcus commented 1 year ago

Need to check the file(s) exist before trying to load them.

(defun citar-file--files-exist-p (files)
  "Check each of a list of FILES exists."
  (dolist (file files)
     (unless (file-exists-p file)
       (user-error "Could not find file: %s" file))))