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:
parent
9931d2779f
commit
1b4931555b
1 changed files with 3 additions and 3 deletions
|
@ -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...~%")
|
||||
|
|
Reference in a new issue