[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: ui: Wrap 'canonicalize-path' for better error reporting.
From: |
Ludovic Courtès |
Subject: |
02/04: ui: Wrap 'canonicalize-path' for better error reporting. |
Date: |
Fri, 13 Jan 2017 17:24:41 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit 6d30b1b2ca92705a6f3c06ddaf8ccf06466089d3
Author: Ludovic Courtès <address@hidden>
Date: Fri Jan 13 12:09:01 2017 +0100
ui: Wrap 'canonicalize-path' for better error reporting.
Reported by Christopher Baines.
* guix/ui.scm (canonicalize-path): New procedure.
---
guix/ui.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/guix/ui.scm b/guix/ui.scm
index 03196db..6247944 100644
--- a/guix/ui.scm
+++ b/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