diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-08 14:46:14 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-08 14:46:14 +0200 |
commit | e2f3b0f16eb34ac6f4941ddcf5b8ee24642656fc (patch) | |
tree | 0eba1180932985c50c6db34c81162898dd5ca1fa /lisp/emacs-lisp | |
parent | 5c532fe30305393079674557256dbb96253fd517 (diff) | |
download | emacs-e2f3b0f16eb34ac6f4941ddcf5b8ee24642656fc.tar.gz emacs-e2f3b0f16eb34ac6f4941ddcf5b8ee24642656fc.tar.bz2 emacs-e2f3b0f16eb34ac6f4941ddcf5b8ee24642656fc.zip |
Improve package.el error messages on too-old Emacsen
* lisp/emacs-lisp/package.el (package-compute-transaction): Give a
better error message on too-old Emacs versions (bug#54747).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 6aa82e576d9..4f1ac5a5dac 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1854,8 +1854,12 @@ SEEN is used internally to detect infinite recursion." (error "Need package `%s-%s', but only %s is available" next-pkg (package-version-join next-version) found-something)) - (t (error "Package `%s-%s' is unavailable" - next-pkg (package-version-join next-version))))) + (t + (if (eq next-pkg 'emacs) + (error "This package requires Emacs version %s" + (package-version-join next-version)) + (error "Package `%s-%s' is unavailable" + next-pkg (package-version-join next-version)))))) (setq packages (package-compute-transaction (cons found packages) (package-desc-reqs found) |