Skip to content

Commit 3332376

Browse files
authored
Merge branch 'akitasoftware:main' into main
2 parents 6200bc9 + 10dd11e commit 3332376

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/internal/ecs/add.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,8 @@ func modifyTaskState(wf *AddWorkflow) (nextState optionals.Optional[AddWorkflowS
871871
printer.Infof("Please start over with a different profile, or add this permission in IAM.\n")
872872
return awf_error(errors.New("Failed to update the ECS task definition due to insufficient permissions."))
873873
}
874+
printer.Errorf("Could not register an ECS task definition. The error from the AWS library is shown below. Please send this log message to observability-support@postman.com for assistance.\n", err)
875+
return awf_error(errors.Wrap(err, "Error registering task definition"))
874876
}
875877
printer.Infof("Registered task definition %q revision %d.\n",
876878
aws.ToString(output.TaskDefinition.Family),
@@ -912,6 +914,8 @@ func updateServiceState(wf *AddWorkflow) (nextState optionals.Optional[AddWorkfl
912914
wf.ecsServiceARN, uoe.OperationName)
913915
return awf_error(errors.New("Failed to update the ECS service due to insufficient permissions."))
914916
}
917+
printer.Errorf("Could not update the ECS service %q. The error from the AWS library is shown below. Please send this log message to observability-support@postman.com for assistance.\n", wf.ecsServiceARN, err)
918+
return awf_error(errors.Wrapf(err, "Error updating ECS service %q", wf.ecsServiceARN))
915919
}
916920
printer.Infof("Updated service %q with new version of task definition.\n", wf.ecsService)
917921

0 commit comments

Comments
 (0)