Skip to content

Commit

Permalink
fix: typo on notes-path warning, use error
Browse files Browse the repository at this point in the history
The symbol used to test for this had a typo, and used 'message' rather
than 'error'.

Fix emacs-citar#485
  • Loading branch information
bdarcus committed Dec 12, 2021
1 parent 7740300 commit 359acf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions citar.el
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ With prefix, rebuild the cache before offering candidates."
:rebuild-cache current-prefix-arg)))
(when (and (null citar-notes-paths)
(equal citar-format-note-function
'citar-org-format-notes-default))
(message "You must set 'citar-notes-paths' to open notes with default notes function"))
'citar-org-format-note-default))
(error "You must set 'citar-notes-paths' to open notes with default notes function"))
(dolist (key-entry keys-entries)
(funcall citar-open-note-function (car key-entry) (cdr key-entry))))

Expand Down

0 comments on commit 359acf3

Please sign in to comment.