From aaf175012237d1bbde53bb49b553739887295351 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 28 Aug 1995 20:13:56 +0000 Subject: [PATCH] (recover-session-finish): Catch erorr in recover-file. --- lisp/files.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 64f33c58e2f..73b9085ddf9 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2178,7 +2178,11 @@ This command is used in the special Dired buffer created by ;; or is empty if the buffer was not visiting a file. ;; The second line is the auto-save file name. (map-y-or-n-p "Recover %s? " - (lambda (file) (save-excursion (recover-file file))) + (lambda (file) + (condition-case nil + (save-excursion (recover-file file)) + (error + "Failed to recover `%s'" file))) (lambda () (if (eobp) nil -- 2.39.2