gnu: Improve error reporting of the use-.*modules macros.
authorLudovic Courtès <ludo@gnu.org>
Wed, 8 Nov 2017 12:33:25 +0000 (13:33 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 8 Nov 2017 21:36:20 +0000 (22:36 +0100)
commitc5a4a92f1a796e342b7db4c458f1fdb61ffc8d40
treeb7b59ee6fc7d0153120b333c82145a830b83988a
parent49483f71381ad32cdbe81b1c8ed2cc023329cc18
gnu: Improve error reporting of the use-.*modules macros.

Suggested by Julien Lepiller and myglc2
at <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00106.html>.

* gnu.scm (%try-use-modules): New procedure.
(package-module-hint, service-module-hint): New procedures.
(try-use-modules): New macro.
(use-package-modules, use-service-modules, use-system-modules): Use it.
* tests/guix-system.sh: Test it.
gnu.scm
po/guix/POTFILES.in
tests/guix-system.sh