Improve an error message in bookmark.el
* lisp/bookmark.el (bookmark-alist-from-buffer): Improve error message (bug#36391).
This commit is contained in:
parent
d7ee13331c
commit
01aac6c1fc
1 changed files with 3 additions and 1 deletions
|
@ -650,7 +650,9 @@ affect point."
|
|||
(forward-char -1)
|
||||
(read (current-buffer)))
|
||||
;; Else no hope of getting information here.
|
||||
(error "Not bookmark format")))))
|
||||
(if buffer-file-name
|
||||
(error "File not in bookmark format: %s" buffer-file-name)
|
||||
(error "Buffer not in bookmark format: %s" (buffer-name)))))))
|
||||
|
||||
|
||||
(defun bookmark-upgrade-version-0-alist (old-list)
|
||||
|
|
Loading…
Add table
Reference in a new issue