1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 05:01:02 -08:00

image-dired: Signal error if file is missing on display

* lisp/image-dired.el (image-dired-display-image): Signal error if
file is missing.
This commit is contained in:
Stefan Kangas 2021-11-03 02:45:36 +01:00
parent 91b6f49cdd
commit 09a38b021b

View file

@ -2040,6 +2040,8 @@ original size."
(window (image-dired-display-window))
(image-type 'jpeg))
(setq file (expand-file-name file))
(when (not (file-exists-p file))
(error "No such file: %s" file))
(if (not original-size)
(let* ((spec
(list