~ruther/guix-local

6d30b1b2ca92705a6f3c06ddaf8ccf06466089d3 — Ludovic Courtès 9 years ago e7ff054
ui: Wrap 'canonicalize-path' for better error reporting.

Reported by Christopher Baines.

* guix/ui.scm (canonicalize-path): New procedure.
1 files changed, 3 insertions(+), 0 deletions(-)

M guix/ui.scm
M guix/ui.scm => guix/ui.scm +3 -0
@@ 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