From a467afbd982db5c5dc9e834c9db3244d21379586 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 13 Nov 2022 08:17:07 +0100 Subject: [PATCH] Mention package name when package is lacking VC data * lisp/emacs-lisp/package-vc.el (package-vc-install): Add package name. (package-vc-checkout): Add package name. --- lisp/emacs-lisp/package-vc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index b93205e5587..96ae518b216 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -678,7 +678,7 @@ uses `package-vc-heuristic-alist' to guess the backend." (url (alist-get :url extras)) (backend (package-vc--guess-backend url))) (list :vc-backend backend :url url)) - (user-error "Package has no VC data")) + (user-error "Package `%s' has no VC data" name-or-url)) rev))) ((user-error "Unknown package to fetch: %s" name-or-url)))) @@ -706,7 +706,8 @@ for the last released version of the package." (url (alist-get :url extras)) (backend (package-vc--guess-backend url))) (list :vc-backend backend :url url)) - (user-error "Package has no VC data")))) + (user-error "Package `%s' has no VC data" + (package-desc-name pkg-desc))))) (package-vc--clone pkg-desc pkg-spec directory rev) (find-file directory))) -- 2.39.2