summaryrefslogtreecommitdiff
path: root/guix/modules.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-04-03 23:33:39 +0200
committerLudovic Courtès <ludo@gnu.org>2018-04-08 17:41:08 +0200
commit1b92d65a40a2cf6028bfc0efb7d7d007d76d008a (patch)
tree62e5551a4d5ab67703c6a8e2f3dfca31c2dccc05 /guix/modules.scm
parent6ef80eb0d94181eb5f755a11fca0d428252ce753 (diff)
downloadgnu-guix-1b92d65a40a2cf6028bfc0efb7d7d007d76d008a.tar
gnu-guix-1b92d65a40a2cf6028bfc0efb7d7d007d76d008a.tar.gz
modules: Report the search path in &missing-dependency-error.
* guix/modules.scm (&missing-dependency-error)[search-path]: New field. (source-module-dependencies): Initialize the 'search-path' field.
Diffstat (limited to 'guix/modules.scm')
-rw-r--r--guix/modules.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/modules.scm b/guix/modules.scm
index bf656bb241..65928f67f2 100644
--- a/guix/modules.scm
+++ b/guix/modules.scm
@@ -25,6 +25,7 @@
#:use-module (ice-9 match)
#:export (missing-dependency-error?
missing-dependency-module
+ missing-dependency-search-path
file-name->module-name
module-name->file-name
@@ -47,7 +48,8 @@
;; The error corresponding to a missing module.
(define-condition-type &missing-dependency-error &error
missing-dependency-error?
- (module missing-dependency-module))
+ (module missing-dependency-module)
+ (search-path missing-dependency-search-path))
(define (colon-symbol? obj)
"Return true if OBJ is a symbol that starts with a colon."
@@ -132,7 +134,8 @@ depends on."
(module-file-dependencies file))
(#f
(raise (condition (&missing-dependency-error
- (module module))))))))
+ (module module)
+ (search-path load-path))))))))
(define* (module-closure modules
#:key