Browse Source

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

Reported by Christopher Baines.

* guix/ui.scm (canonicalize-path): New procedure.
gn-latest-20200428
Ludovic Courtès 5 years ago
parent
commit
6d30b1b2ca
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 3
      guix/ui.scm

3
guix/ui.scm

@ -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

Loading…
Cancel
Save