From f655bd20084474df5472eaf28368b7185abe98e6 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 7 Feb 2022 01:59:18 +0100 Subject: [PATCH] Give a better error in locate-default-make-command-line * lisp/locate.el (locate-default-make-command-line): Error out more nicely. --- lisp/locate.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/locate.el b/lisp/locate.el index d4847b9c050..20ef052184e 100644 --- a/lisp/locate.el +++ b/lisp/locate.el @@ -238,6 +238,8 @@ that is, with a prefix arg, you get the default behavior." ;; Functions (defun locate-default-make-command-line (search-string) + (unless (executable-find locate-command) + (error "Can't find the %s command" locate-command)) (list locate-command search-string)) (defun locate-word-at-point () -- 2.39.5