modules: Raise an error when a dependency could not be found.
authorLudovic Courtès <ludo@gnu.org>
Thu, 25 May 2017 12:19:51 +0000 (14:19 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 25 May 2017 12:25:17 +0000 (14:25 +0200)
commitbfe5264aa10c1af64adc5c24d0cf091562e3e09c
tree35a96110a4ae5d201edbf665f49513a08cf61a85
parent4862a98be473ac6bb0bfd8a6cdbc81119cb44355
modules: Raise an error when a dependency could not be found.

* guix/modules.scm (&missing-dependency-error): New error condition.
(source-module-dependencies): Raise it when 'search-path' returns #f.
* tests/modules.scm ("&missing-dependency-error"): New test.
guix/modules.scm
tests/modules.scm