Archived
1
0
Fork 0

deploy: Leave on hard error.

Previously, the error message would be displayed, followed by a
backtrace ending in &non-continuable.

* guix/scripts/deploy.scm (deploy-machine*): Call 'leave' rather than
'report-error' when C is a &message.
This commit is contained in:
Ludovic Courtès 2021-06-25 11:26:22 +02:00
parent 9931d2779f
commit 1b4931555b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -129,9 +129,9 @@ Perform the deployment specified by FILE.\n"))
(raise c))
((message-condition? c)
(report-error (G_ "failed to deploy ~a: ~a~%")
(machine-display-name machine)
(condition-message c)))
(leave (G_ "failed to deploy ~a: ~a~%")
(machine-display-name machine)
(condition-message c)))
((deploy-error? c)
(when (deploy-error-should-roll-back c)
(info (G_ "rolling back ~a...~%")