Dont report UPLOAD_FILES_START_FAILED as unknown error

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-06-07 08:21:47 +02:00
parent 2c03a16a68
commit b044cd0614
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -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)
}