; Improve diagnostics in Image Dired

* lisp/image/image-dired-external.el
(image-dired--check-executable-exists): Improve diagnostics.
This commit is contained in:
Eli Zaretskii 2024-06-02 14:14:10 +03:00
parent b71fa27987
commit 4303e5c9fa

View file

@ -240,7 +240,8 @@ function, consider that function to be an alternative to running EXECUTABLE."
(or (and (executable-find cmd)
(image-dired--probe-thumbnail-cmd cmd))
(and func (fboundp func) 'function)
(error "Executable %S not found or not pertinent" executable))))
(error "Executable named by `%S' (%s) not found or not pertinent"
executable (symbol-value executable)))))
;;; Creating thumbnails