ui: Wrap 'canonicalize-path' for better error reporting.

Reported by Christopher Baines.

* guix/ui.scm (canonicalize-path): New procedure.
This commit is contained in:
Ludovic Courtès 2017-01-13 12:09:01 +01:00
parent e7ff05438f
commit 6d30b1b2ca
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 0 deletions

View File

@ -362,6 +362,9 @@ FILE."
;; 'copy-recursively', which doesn't use (guix ui).
(error-reporting-wrapper copy-file (source target) target))
(set! canonicalize-path
(error-reporting-wrapper canonicalize-path (file) file))
(define (make-regexp* regexp . flags)
"Like 'make-regexp' but error out if REGEXP is invalid, reporting the error