terraform/plugin/convert
Martin Atkins e25f79ed28 plugin/convert: Show approximate location context for all provider errors
Even if a provider doesn't indicate a specific attribute as the cause of
a resource operation error, we know the error relates to some aspect of
the resource, so we'll include that approximate information in the result
so that we don't produce user-hostile error messages with no context
whatsoever.

Later we can hopefully refine this to place the source range on the header
of the configuration block rather than on an empty part of the body, but
that'll require some more complex rework here and so for now we'll just
accept this as an interim state so that the user can at least figure out
which resource block the error is coming from.
2018-10-16 19:14:54 -07:00
..
diagnostics.go plugin/convert: Show approximate location context for all provider errors 2018-10-16 19:14:54 -07:00
diagnostics_test.go move conversion functions into separate package 2018-10-16 19:11:09 -07:00
schema.go move conversion functions into separate package 2018-10-16 19:11:09 -07:00
schema_test.go move conversion functions into separate package 2018-10-16 19:11:09 -07:00