1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

Improve dired deletion error handling (Bug#28797)

* lisp/dired.el (dired-internal-do-deletions): Use
`error-message-string' to produce a human readable error message.
This commit is contained in:
Noam Postavsky 2017-10-12 23:12:00 -04:00
parent 5d744e032f
commit efd0371c23

View File

@ -3144,7 +3144,7 @@ non-empty directories is allowed."
#'dired-delete-entry fn))
(quit (throw '--delete-cancel (message "OK, canceled")))
(error ;; catch errors from failed deletions
(dired-log "%s\n" err)
(dired-log "%s: %s\n" (car err) (error-message-string err))
(setq failures (cons (car (car l)) failures)))))
(setq l (cdr l)))
(if (not failures)