Improve error message for missing Info manual

* lisp/info.el (Info-find-file): Improve error message for missing
Info manual.  (Bug#46236)
Fix suggested by Eli Zaretskii <eliz@gnu.org>.
This commit is contained in:
Stefan Kangas 2021-04-21 18:19:46 +02:00
parent 3e727cf20b
commit cecfbf076e

View file

@ -916,7 +916,8 @@ find a node."
(when (and (not no-pop-to-dir)
(not Info-current-file))
(Info-directory))
(user-error "Info file %s does not exist" filename)))
(user-error "Info file `%s' does not exist; consider installing it"
filename)))
filename))))
(defun Info-find-node (filename nodename &optional no-going-back strict-case)