]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/hcl2/hcl/json/structure.go
update vendor and go.mod
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / hcl2 / hcl / json / structure.go
index bdc0e983e5eeaef19ec09e03e3b525d9ced3864d..74847c79a5570694bbaf3cf688d16c3e4912659d 100644 (file)
@@ -416,12 +416,14 @@ func (e *expression) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) {
        case *booleanVal:
                return cty.BoolVal(v.Value), nil
        case *arrayVal:
+               var diags hcl.Diagnostics
                vals := []cty.Value{}
                for _, jsonVal := range v.Values {
-                       val, _ := (&expression{src: jsonVal}).Value(ctx)
+                       val, valDiags := (&expression{src: jsonVal}).Value(ctx)
                        vals = append(vals, val)
+                       diags = append(diags, valDiags...)
                }
-               return cty.TupleVal(vals), nil
+               return cty.TupleVal(vals), diags
        case *objectVal:
                var diags hcl.Diagnostics
                attrs := map[string]cty.Value{}