Commit 01aac6c1 authored by Stefan Kangas's avatar Stefan Kangas Committed by Lars Ingebrigtsen

Improve an error message in bookmark.el

* lisp/bookmark.el (bookmark-alist-from-buffer): Improve error
message (bug#36391).
parent d7ee1333
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment