mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
guix system: Fix the Shepherd error handling fix.
This is a followup to aa1e73a996
.
* guix/scripts/system.scm (with-shepherd-error-handling): Return two
values when an exception is caught.
This commit is contained in:
parent
35c4aec88d
commit
9d1e56b76d
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ (define-syntax-rule (with-shepherd-error-handling mbody ...)
|
|||
(lambda (store)
|
||||
(warn-on-system-error
|
||||
(guard (c ((shepherd-error? c)
|
||||
(report-shepherd-error c)))
|
||||
(values (report-shepherd-error c) store)))
|
||||
(values (run-with-store store (begin mbody ...))
|
||||
store)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue