* lisp/emacs-lisp/package.el (package-strip-rcs-id): Don't ignore errors

Ignoring errors here just postpones the error and replaces a clear
"invalid version syntax" with a confusing "package lacks a version".
This commit is contained in:
Stefan Monnier 2020-11-20 19:28:34 -05:00
parent abd15e088e
commit 932cb10761

View file

@ -2112,8 +2112,7 @@ Otherwise return nil."
(when str
(when (string-match "\\`[ \t]*[$]Revision:[ \t]+" str)
(setq str (substring str (match-end 0))))
(ignore-errors
(if (version-to-list str) str))))
(if (version-to-list str) str)))
(declare-function lm-homepage "lisp-mnt" (&optional file))