503c413de2
Add an address argument to tfdiags.InConfigBody, and store the address string the diagnostics details. Since nearly every place where we want to annotate the diagnostics with the config context we also have some sort of address, we can use the same call to insert them both into the diagnostic. Perhaps we should rename InConfigBody and ElaborateFromConfigBody to reflect the additional address parameter, but for now we can verify this is a pattern that suits us. |
||
---|---|---|
.. | ||
config_traversals.go | ||
consolidate_warnings.go | ||
consolidate_warnings_test.go | ||
contextual.go | ||
contextual_test.go | ||
diagnostic.go | ||
diagnostic_base.go | ||
diagnostics.go | ||
diagnostics_test.go | ||
doc.go | ||
error.go | ||
hcl.go | ||
hcl_test.go | ||
rpc_friendly.go | ||
rpc_friendly_test.go | ||
severity_string.go | ||
simple_warning.go | ||
source_range.go | ||
sourceless.go |