diff options
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcl/merged.go')
-rw-r--r-- | vendor/github.com/hashicorp/hcl2/hcl/merged.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/merged.go b/vendor/github.com/hashicorp/hcl2/hcl/merged.go index ca2b728..96e62a5 100644 --- a/vendor/github.com/hashicorp/hcl2/hcl/merged.go +++ b/vendor/github.com/hashicorp/hcl2/hcl/merged.go | |||
@@ -109,9 +109,9 @@ func (mb mergedBodies) JustAttributes() (Attributes, Diagnostics) { | |||
109 | if existing := attrs[name]; existing != nil { | 109 | if existing := attrs[name]; existing != nil { |
110 | diags = diags.Append(&Diagnostic{ | 110 | diags = diags.Append(&Diagnostic{ |
111 | Severity: DiagError, | 111 | Severity: DiagError, |
112 | Summary: "Duplicate attribute", | 112 | Summary: "Duplicate argument", |
113 | Detail: fmt.Sprintf( | 113 | Detail: fmt.Sprintf( |
114 | "Attribute %q was already assigned at %s", | 114 | "Argument %q was already set at %s", |
115 | name, existing.NameRange.String(), | 115 | name, existing.NameRange.String(), |
116 | ), | 116 | ), |
117 | Subject: &attr.NameRange, | 117 | Subject: &attr.NameRange, |
@@ -171,7 +171,7 @@ func (mb mergedBodies) mergedContent(schema *BodySchema, partial bool) (*BodyCon | |||
171 | } | 171 | } |
172 | 172 | ||
173 | if thisLeftovers != nil { | 173 | if thisLeftovers != nil { |
174 | mergedLeftovers = append(mergedLeftovers) | 174 | mergedLeftovers = append(mergedLeftovers, thisLeftovers) |
175 | } | 175 | } |
176 | if len(thisDiags) != 0 { | 176 | if len(thisDiags) != 0 { |
177 | diags = append(diags, thisDiags...) | 177 | diags = append(diags, thisDiags...) |
@@ -182,9 +182,9 @@ func (mb mergedBodies) mergedContent(schema *BodySchema, partial bool) (*BodyCon | |||
182 | if existing := content.Attributes[name]; existing != nil { | 182 | if existing := content.Attributes[name]; existing != nil { |
183 | diags = diags.Append(&Diagnostic{ | 183 | diags = diags.Append(&Diagnostic{ |
184 | Severity: DiagError, | 184 | Severity: DiagError, |
185 | Summary: "Duplicate attribute", | 185 | Summary: "Duplicate argument", |
186 | Detail: fmt.Sprintf( | 186 | Detail: fmt.Sprintf( |
187 | "Attribute %q was already assigned at %s", | 187 | "Argument %q was already set at %s", |
188 | name, existing.NameRange.String(), | 188 | name, existing.NameRange.String(), |
189 | ), | 189 | ), |
190 | Subject: &attr.NameRange, | 190 | Subject: &attr.NameRange, |
@@ -212,9 +212,9 @@ func (mb mergedBodies) mergedContent(schema *BodySchema, partial bool) (*BodyCon | |||
212 | // use of required attributes on merged bodies. | 212 | // use of required attributes on merged bodies. |
213 | diags = diags.Append(&Diagnostic{ | 213 | diags = diags.Append(&Diagnostic{ |
214 | Severity: DiagError, | 214 | Severity: DiagError, |
215 | Summary: "Missing required attribute", | 215 | Summary: "Missing required argument", |
216 | Detail: fmt.Sprintf( | 216 | Detail: fmt.Sprintf( |
217 | "The attribute %q is required, but was not assigned.", | 217 | "The argument %q is required, but was not set.", |
218 | attrS.Name, | 218 | attrS.Name, |
219 | ), | 219 | ), |
220 | }) | 220 | }) |