From a512287667e92ed38ef12c17caa0dd44bc6cdc0d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 2 Jun 2024 14:14:10 +0300 Subject: [PATCH] ; Improve diagnostics in Image Dired * lisp/image/image-dired-external.el (image-dired--check-executable-exists): Improve diagnostics. (cherry picked from commit 4303e5c9fa37368b50677f21aba977758f100e3c) --- lisp/image/image-dired-external.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/image/image-dired-external.el b/lisp/image/image-dired-external.el index da272c146c9..5a9fc504370 100644 --- a/lisp/image/image-dired-external.el +++ b/lisp/image/image-dired-external.el @@ -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 -- 2.39.2