]> git.eshelyaron.com Git - emacs.git/commitdiff
Print a message when failing to recover a file
authorPip Cet <pipcet@protonmail.com>
Tue, 10 Jun 2025 12:26:22 +0000 (12:26 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:02:59 +0000 (10:02 +0200)
* lisp/files.el (recover-session-finish): Call 'message' rather than
evaluating a string and a variable without using the result.

(cherry picked from commit f69b822fb0e804a13ff7a4eb55fc2ae618e0de72)

lisp/files.el

index d5b16a6f58d3dbeb3d1701c7ca57979c77eed32c..f4f5513ed80e4a29f778cc4d6eea2e4d1ee1db13 100644 (file)
@@ -7532,7 +7532,8 @@ This command is used in the special Dired buffer created by
                               (condition-case nil
                                   (save-excursion (recover-file file))
                                 (error
-                                 "Failed to recover `%s'" file)))
+                                 (message
+                                  "Failed to recover `%s'" file))))
                             files
                             '("file" "files" "recover"))
            (message "No files can be recovered from this session now")))