build-system/haskell: Explain failure.
Provide human-readable failure message and explain how to fix it. * guix/build/haskell-build-system.scm (register): Raise error if source file does not exist.
This commit is contained in:
parent
edd912a128
commit
b74ca403cb
1 changed files with 2 additions and 0 deletions
|
@ -217,6 +217,8 @@ (define (install-transitive-deps conf-file src dest)
|
|||
(if (not (vhash-assoc id seen))
|
||||
(let ((dep-conf (string-append src "/" id ".conf"))
|
||||
(dep-conf* (string-append dest "/" id ".conf")))
|
||||
(when (not (file-exists? dep-conf))
|
||||
(error (format #f "File ~a does not exist. This usually means the dependency ~a is missing. Was checking conf-file ~a." dep-conf id conf-file)))
|
||||
(copy-file dep-conf dep-conf*) ;XXX: maybe symlink instead?
|
||||
(loop (vhash-cons id #t seen)
|
||||
(append lst (conf-depends dep-conf))))
|
||||
|
|
Loading…
Reference in a new issue