emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/backports-25.2 cf54324 42/46: Improve error when i


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/backports-25.2 cf54324 42/46: Improve error when installing non-package dirs
Date: Sun, 2 Oct 2016 14:04:50 +0000 (UTC)

branch: scratch/backports-25.2
commit cf54324458e37b77de9e1b1fa684b7734183d0ed
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Improve error when installing non-package dirs
    
    * lisp/emacs-lisp/package.el (package-dir-info): Throw meaningful error
    when no file with package info is found (Bug #19851).
    
    (cherry picked from commit 14a86f837762af8d16eef57c315da93b56699901)
---
 lisp/emacs-lisp/package.el |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index a27e570..dc0caf5 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1077,6 +1077,8 @@ The return result is a `package-desc'."
               (setq files nil)
               ;; set the 'dir kind,
               (setf (package-desc-kind info) 'dir))))
+        (unless info
+          (error "No .el files with package headers in `%s'" 
default-directory))
         ;; and return the info.
         info))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]