summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package-vc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/package-vc.el')
-rw-r--r--lisp/emacs-lisp/package-vc.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 62724d398c1..36d17c6116b 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -648,6 +648,8 @@ uses `package-vc-heuristic-alist' to guess the backend."
(and current-prefix-arg :last-release)))))
(package-vc--archives-initialize)
(cond
+ ((null name-or-url)
+ (signal 'wrong-type-argument nil))
((and-let* (((stringp name-or-url))
(backend (or backend (package-vc--guess-backend name-or-url))))
(package-vc--unpack