From: Stefan Kangas Date: Thu, 15 Sep 2022 16:48:41 +0000 (+0200) Subject: Improve error when wallpaper-command is nil X-Git-Tag: emacs-29.0.90~1856^2~481 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ba47a0782f7059062ca6743b22c40a410933f13;p=emacs.git Improve error when wallpaper-command is nil * lisp/image/wallpaper.el (wallpaper-set): Improve the error message when 'wallpaper-command' is nil. --- diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el index d024d6238cb..fe6882a5880 100644 --- a/lisp/image/wallpaper.el +++ b/lisp/image/wallpaper.el @@ -254,6 +254,8 @@ On Haiku, no external command is needed, so the value of ((featurep 'haiku) (haiku-set-wallpaper file)) (t + (unless wallpaper-command + (error "Couldn't find a command to set the wallpaper with")) (let* ((fmt-spec `((?f . ,(expand-file-name file)) (?h . ,(wallpaper--get-height-or-width "height"