fix error not being returned

This commit is contained in:
Shreyas Goenka 2023-07-05 16:49:54 +02:00
parent e87edd7435
commit cd89e5b1ac
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func logPlan(ctx context.Context, plan *tfjson.Plan) error {
case tfActions.Replace():
action = "replace"
default:
fmt.Errorf("unknown terraform actions: %s", tfActions)
return fmt.Errorf("unknown terraform actions: %s", tfActions)
}
err := cmdio.RenderWithTemplate(ctx, change, fmt.Sprintf("%s {{.Type}} {{.Name}}\n", action))