(ux): update the error message for org-roam-unlinked-references (#818)

Co-authored-by: Leo Vivier <leo.vivier+dev@gmail.com>
Co-authored-by: Santiago Gepigon <santiago.gepigon@gmail.com>
This commit is contained in:
Jethro Kuan 2020-06-13 22:33:37 +08:00 committed by GitHub
parent 0d5efe1c14
commit 9cf26494e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1438,7 +1438,7 @@ linked, lest the network graph get too crowded."
(unless (org-roam--org-roam-file-p)
(user-error "Not in org-roam file"))
(if (not (executable-find "rg"))
(user-error "Cannot find the \"rg\" executable, aborting")
(error "Cannot find the ripgrep executable \"rg\". Check that it is installed and available on `exec-path'")
(let* ((titles (org-roam--extract-titles))
(rg-command (concat "rg -o --vimgrep -P -i "
(string-join (mapcar (lambda (glob) (concat "-g " glob))