Be specific when encountering an error in a recipe file

This commit is contained in:
Steve Purcell 2014-03-30 20:05:11 +01:00
parent 88ed6db7b5
commit 6e6412cbf6

View file

@ -694,7 +694,9 @@ of the same-named package which is to be kept."
"Return a list of data structures for all recipes in `package-build-recipes-dir'."
(cl-loop for file-name in (directory-files package-build-recipes-dir t "^[^.]")
for pkg-info = (condition-case err (pb/read-recipe file-name)
(error (pb/message (error-message-string err))
(error (pb/message "Error reading recipe %s: %s"
file-name
(error-message-string err))
nil))
when pkg-info
collect pkg-info))