From fd9c2756615139829dd2d509405c2fc0ec370b95 Mon Sep 17 00:00:00 2001 From: qbart Date: Tue, 19 Mar 2024 12:12:04 +0100 Subject: [PATCH] fix: Handle error with describe tasks in ECS --- awscmd/ecs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awscmd/ecs.go b/awscmd/ecs.go index f569b23..08b706a 100644 --- a/awscmd/ecs.go +++ b/awscmd/ecs.go @@ -40,6 +40,9 @@ func EcsDeploy(ctx context.Context, input *InputEcsDeploy, w io.Writer) (*OuputE } taskDef, err := ecsTaskDefinitionFromService(svc, ctx, input.Cluster, input.Service, w) + if err != nil { + return nil, err + } taskName := *taskDef.Family fmt.Fprintf(w, "Registering new task [%s]\n", idOneOff(taskName, ""))