]> git.eshelyaron.com Git - emacs.git/commitdiff
Notify the user if we errors when querying for registered git files
authorEmilio Lopes <eclig@gmx.net>
Thu, 13 Aug 2020 08:01:00 +0000 (10:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Aug 2020 08:01:00 +0000 (10:01 +0200)
* lisp/vc/vc-git.el (vc-git-registered): Notify the user when
something fails here (bug#18481).

lisp/vc/vc-git.el

index e0cf9e795956671693b54243ce6a0f153b0bf3b1..78a2fa0879511ce6914887fa49c874dc118434fd 100644 (file)
@@ -243,7 +243,7 @@ toggle display of the entire list."
                ;; path specs.
                ;; See also: http://marc.info/?l=git&m=125787684318129&w=2
                (name (file-relative-name file dir))
-               (str (ignore-errors
+               (str (with-demoted-errors "Error: %S"
                       (cd dir)
                       (vc-git--out-ok "ls-files" "-c" "-z" "--" name)
                       ;; If result is empty, use ls-tree to check for deleted