]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention package name when package is lacking VC data
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 13 Nov 2022 07:17:07 +0000 (08:17 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:55:04 +0000 (20:55 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-install): Add package name.
(package-vc-checkout): Add package name.

lisp/emacs-lisp/package-vc.el

index b93205e55879e3f4a807a52224b6e0888d2b29af..96ae518b216bfdfab7dbf375d071cdcbf0eab01e 100644 (file)
@@ -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)))