emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 14a86f8: Improve error when installing non-package


From: Noam Postavsky
Subject: [Emacs-diffs] master 14a86f8: Improve error when installing non-package dirs
Date: Sun, 21 Aug 2016 16:24:43 +0000 (UTC)

branch: master
commit 14a86f837762af8d16eef57c315da93b56699901
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).
---
 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 e721b55..f669c31 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1081,6 +1081,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]