From b044cd06143a175af6ec2fab279c15b2c221c307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Fri, 7 Jun 2024 08:21:47 +0200 Subject: [PATCH] Dont report UPLOAD_FILES_START_FAILED as unknown error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- debugd/internal/cdbg/cmd/deploy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debugd/internal/cdbg/cmd/deploy.go b/debugd/internal/cdbg/cmd/deploy.go index 95c3d147e..a62f9e2bc 100644 --- a/debugd/internal/cdbg/cmd/deploy.go +++ b/debugd/internal/cdbg/cmd/deploy.go @@ -274,6 +274,8 @@ func uploadFiles(ctx context.Context, client pb.DebugdClient, in deployOnEndpoin return fmt.Errorf("uploading files to %v failed: %v", in.debugdEndpoint, uploadResponse) case pb.UploadFilesStatus_UPLOAD_FILES_ALREADY_STARTED: return fmt.Errorf("upload already started on %v", in.debugdEndpoint) + case pb.UploadFilesStatus_UPLOAD_FILES_START_FAILED: + return fmt.Errorf("overriding service units failed on %v: %v", in.debugdEndpoint, uploadResponse.Status) default: return fmt.Errorf("unknown upload status %v", uploadResponse.Status) }