Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 6063f379 authored by Kyle Hargraves's avatar Kyle Hargraves

Signal an error if reading a recipe causes an error

Without this, a parse error in a recipe will cause (el-get ...) to
die with a less than helpful message.
parent 8e85266d
......@@ -70,9 +70,12 @@ Used to avoid errors when exploring the path for recipes"
(defun el-get-read-recipe-file (filename)
"Read given filename and return its content (a valid form is expected)"
(insert-file-contents-literally filename)
(read (current-buffer))))
(condition-case err
(insert-file-contents-literally filename)
(read (current-buffer)))
((debug error)
(error "Error reading recipe %s: %S" filename err))))
(defun el-get-recipe-filename (package)
"Return the name of the file that contains the recipe for PACKAGE, if any."
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