diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-11-20 19:28:34 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-11-20 19:28:34 -0500 |
commit | 932cb10761b9f249c87d7c19778873691f2a5d46 (patch) | |
tree | 0ff3f3720286f3be9a1f15bc7d636622bbfcc0f6 /lisp/emacs-lisp | |
parent | abd15e088e99b1c6334a427879fead0d557b7447 (diff) | |
download | emacs-932cb10761b9f249c87d7c19778873691f2a5d46.tar.gz emacs-932cb10761b9f249c87d7c19778873691f2a5d46.tar.bz2 emacs-932cb10761b9f249c87d7c19778873691f2a5d46.zip |
* 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".
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index d78a1a2856a..9c37ce429a7 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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)) |