From 78d72d9066650bc76da76ca6c26d07ebc796db5a Mon Sep 17 00:00:00 2001 From: Mohamed Talal Seif Date: Sun, 25 Jan 2026 22:41:16 +0200 Subject: [PATCH] Return error when service update triggers rollback When a service update fails and triggers a rollback, the command now exits with code 1 instead of 0 Fixes #6752 Signed-off-by: Mohamed Talal Seif --- cli/command/service/progress/progress.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/command/service/progress/progress.go b/cli/command/service/progress/progress.go index a4de39b8fbdf..1de01b8c9ad7 100644 --- a/cli/command/service/progress/progress.go +++ b/cli/command/service/progress/progress.go @@ -138,6 +138,10 @@ func ServiceProgress(ctx context.Context, apiClient client.APIClient, serviceID if message != nil { _ = progressOut.WriteProgress(*message) } + if rollback { + // Exit with error when update was rolled back + return fmt.Errorf("service update rolled back: %s", res.Service.UpdateStatus.Message) + } return nil }