From: Richard M. Stallman Date: Mon, 28 Aug 1995 20:13:56 +0000 (+0000) Subject: (recover-session-finish): Catch erorr in recover-file. X-Git-Tag: emacs-19.34~2896 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aaf175012237d1bbde53bb49b553739887295351;p=emacs.git (recover-session-finish): Catch erorr in recover-file. --- 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