mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Mention which exact file is already registered
* lisp/vc/vc.el (vc-register): Mention which exact file is already registered (bug#44420).
This commit is contained in:
parent
33e8116fc2
commit
8dab61958d
1 changed files with 1 additions and 1 deletions
|
|
@ -1391,7 +1391,7 @@ first backend that could register the file is used."
|
|||
(unless fname
|
||||
(setq fname buffer-file-name))
|
||||
(when (vc-call-backend backend 'registered fname)
|
||||
(error "This file is already registered"))
|
||||
(error "This file is already registered: %s" fname))
|
||||
;; Watch out for new buffers of size 0: the corresponding file
|
||||
;; does not exist yet, even though buffer-modified-p is nil.
|
||||
(when bname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue