derivations: Raise an error when a module file is not found.
authorLudovic Courtès <ludo@gnu.org>
Tue, 22 Mar 2016 14:00:53 +0000 (15:00 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 22 Mar 2016 23:23:12 +0000 (00:23 +0100)
commitd26e19671e2a50a25d37357aba301bef5df1818e
tree4b3c6fd70004e12d7ffb2acc5c137cf72dbe4bf5
parent6985335faaa23965887b62ce8123f8f12e352bd5
derivations: Raise an error when a module file is not found.

Suggested by Jookia.

* guix/derivations.scm (&file-search-error): New error condition.
(search-path*): Raise it when 'search-path' returns #f.
* guix/gexp.scm (search-path*): Remove.
* guix/ui.scm (call-with-error-handling): Add case for
'file-search-error?'.
* tests/derivations.scm ("build-expression->derivation and invalid
module name"): New test.
guix/derivations.scm
guix/gexp.scm
guix/ui.scm
tests/derivations.scm