]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve diagnostics in Image Dired
authorEli Zaretskii <eliz@gnu.org>
Sun, 2 Jun 2024 11:14:10 +0000 (14:14 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 2 Jun 2024 11:18:35 +0000 (13:18 +0200)
* lisp/image/image-dired-external.el
(image-dired--check-executable-exists): Improve diagnostics.

(cherry picked from commit 4303e5c9fa37368b50677f21aba977758f100e3c)

lisp/image/image-dired-external.el

index da272c146c9afdcda3cd075fa3cc30a44e676c5a..5a9fc504370901ccd0a44fdac3a9c3c91936bab1 100644 (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)))))
 
 \f
 ;;; Creating thumbnails