From: Noam Postavsky Date: Sat, 25 Jun 2016 19:57:39 +0000 (-0400) Subject: Improve error when installing non-package dirs X-Git-Tag: emacs-26.0.90~1712^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14a86f837762af8d16eef57c315da93b56699901;p=emacs.git 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). --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e721b553eae..f669c31e791 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))))