Improve exception handling for channel instance derivations
This commit is contained in:
parent
ac1a4cb1e2
commit
26f517d9c2
1 changed files with 13 additions and 10 deletions
|
|
@ -1190,10 +1190,12 @@
|
||||||
(with-exception-handler
|
(with-exception-handler
|
||||||
(lambda (exn)
|
(lambda (exn)
|
||||||
(if (inferior-protocol-error? exn)
|
(if (inferior-protocol-error? exn)
|
||||||
(simple-format (current-error-port)
|
(begin
|
||||||
"ignoring ~A for ~A\n"
|
(simple-format (current-error-port)
|
||||||
exn
|
"ignoring ~A for ~A\n"
|
||||||
system)
|
exn
|
||||||
|
system)
|
||||||
|
#f)
|
||||||
(raise-exception exn)))
|
(raise-exception exn)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-throw-handler #t
|
(with-throw-handler #t
|
||||||
|
|
@ -1214,12 +1216,13 @@
|
||||||
(for-each
|
(for-each
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((_ . manifest-and-profile)
|
((_ . manifest-and-profile)
|
||||||
(and=> (assq-ref manifest-and-profile 'manifest-entry-item)
|
(when manifest-and-profile
|
||||||
(lambda (drv)
|
(and=> (assq-ref manifest-and-profile 'manifest-entry-item)
|
||||||
(add-temp-root store drv)))
|
(lambda (drv)
|
||||||
(and=> (assq-ref manifest-and-profile 'profile)
|
(add-temp-root store drv)))
|
||||||
(lambda (drv)
|
(and=> (assq-ref manifest-and-profile 'profile)
|
||||||
(add-temp-root store drv)))))
|
(lambda (drv)
|
||||||
|
(add-temp-root store drv))))))
|
||||||
result)
|
result)
|
||||||
|
|
||||||
;; Now the roots have been added to the main store connection, close the
|
;; Now the roots have been added to the main store connection, close the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue