diff --git a/builtin/providers/aws/data_source_aws_ecs_task_definition.go b/builtin/providers/aws/data_source_aws_ecs_task_definition.go index 4abdc021d7..3a5096a3b9 100644 --- a/builtin/providers/aws/data_source_aws_ecs_task_definition.go +++ b/builtin/providers/aws/data_source_aws_ecs_task_definition.go @@ -51,7 +51,7 @@ func dataSourceAwsEcsTaskDefinitionRead(d *schema.ResourceData, meta interface{} }) if err != nil { - return err + return fmt.Errorf("Failed getting task definition %s %q", err, d.Get("task_definition").(string)) } taskDefinition := *desc.TaskDefinition