ui: Add "error-reporting wrapper" for 'mkdir'.

* guix/ui.scm <top level>: Change 'mkdir' to use an error-reporting
wrapper.
This commit is contained in:
Ludovic Courtès 2023-01-25 19:48:39 +01:00
parent 968b882f55
commit 852908d24d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -591,6 +591,9 @@ (define-syntax-rule (error-reporting-wrapper proc formals file)
(set! execlp
(error-reporting-wrapper execlp (filename . args) filename))
(set! mkdir
(error-reporting-wrapper mkdir (directory . args) directory))
(define (make-regexp* regexp . flags)
"Like 'make-regexp' but error out if REGEXP is invalid, reporting the error
nicely."