Commit 14a86f83 authored by Noam Postavsky's avatar Noam Postavsky

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).
parent 578d9aaf
......@@ -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))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment