org-agenda.el: Use `user-error'

* lisp/org-agenda.el (org-agenda-priority): Use `user-error'.
This commit is contained in:
Bastien 2020-01-31 08:36:00 +01:00
parent 4f98694bf7
commit c9d2f12094
1 changed files with 1 additions and 1 deletions

View File

@ -9337,7 +9337,7 @@ Called with a universal prefix arg, show the priority instead of setting it."
(if (equal force-direction '(4))
(org-priority-show)
(unless org-priority-enable-commands
(error "Priority commands are disabled"))
(user-error "Priority commands are disabled"))
(org-agenda-check-no-diary)
(let* ((col (current-column))
(marker (or (org-get-at-bol 'org-marker)