From 6a8665ac475892197ba9095b1c1ff985ec2db40e Mon Sep 17 00:00:00 2001 From: Ryo Takaishi Date: Thu, 27 Jul 2023 09:13:02 +0900 Subject: [PATCH] fix: error message --- internal/terraform/plan.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/terraform/plan.go b/internal/terraform/plan.go index 3347871..0050539 100644 --- a/internal/terraform/plan.go +++ b/internal/terraform/plan.go @@ -149,17 +149,17 @@ func processPlan(plan *tfjson.Plan) (*tfjson.Plan, error) { for i := range plan.ResourceChanges { plan.ResourceChanges[i].Change, err = sanitize.SanitizeChange(plan.ResourceChanges[i].Change, sanitize.DefaultSensitiveValue) if err != nil { - return nil, fmt.Errorf("failed to sanitize plan: %w", err) + return nil, fmt.Errorf("failed to sanitize change: %w", err) } plan.ResourceChanges[i].Change, err = format.FormatJsonChange(plan.ResourceChanges[i].Change) if err != nil { - return nil, fmt.Errorf("failed to prettify plan: %w", err) + return nil, fmt.Errorf("failed to format json change: %w", err) } plan.ResourceChanges[i].Change, err = format.FormatUnknownChange(plan.ResourceChanges[i].Change) if err != nil { - return nil, fmt.Errorf("failed to prettify plan: %w", err) + return nil, fmt.Errorf("failed to format unknown change: %w", err) } }