Skip to content

Commit 7993cb4

Browse files
committed
fixup error messages
1 parent a9c1e25 commit 7993cb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

override.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func mergeOverrides(origFS fs.FS) (fs.FS, hcl.Diagnostics, error) {
163163
if oblock.Type() == "locals" {
164164
diags := mergeLocalsBlock(primaries, oblock, path)
165165
if diags.HasErrors() {
166-
return nil, warnings.Extend(diags), errors.New("error merging locals block")
166+
return nil, warnings.Extend(diags), errors.New("error merging 'locals' block")
167167
}
168168
continue
169169
}
@@ -197,7 +197,7 @@ func mergeOverrides(origFS fs.FS) (fs.FS, hcl.Diagnostics, error) {
197197
if !matched {
198198
// Terraform requires every override block to have a corresponding
199199
// primary block — override files can only modify, not create.
200-
return nil, warnings, fmt.Errorf("override block %s in %s has no matching block in a primary file", key, path)
200+
return nil, warnings, fmt.Errorf("override block %q in %s has no matching block in a primary file", key, path)
201201
}
202202
}
203203

0 commit comments

Comments
 (0)