terraform/tfdiags
Martin Atkins 3822650e15 tfdiags: Diagnostics.ErrWithWarnings and .NonFatalErr
There is some existing practice in the "terraform" package of returning
a special error type ValidationError from EvalNode implementations in
order to return warnings without halting the graph walk even though a
non-nil error was returned.

This is a diagnostics-flavored version of that approach, allowing us to
avoid totally reworking the EvalNode concept around diagnostics and
retaining the ability to return non-fatal errors.

NonFatalErr is equivalent to the former terraform.ValidationError, while
ErrWithWarnings is a helper that automatically treats any errors as
fatal but returns NonFatalError if the diagnostics contains only warnings.
2018-10-16 18:44:26 -07:00
..
config_traversals.go
contextual.go
contextual_test.go
diagnostic.go
diagnostic_base.go
diagnostics.go tfdiags: Diagnostics.ErrWithWarnings and .NonFatalErr 2018-10-16 18:44:26 -07:00
diagnostics_test.go tfdiags: Diagnostics.ErrWithWarnings and .NonFatalErr 2018-10-16 18:44:26 -07:00
doc.go
error.go
hcl.go
rpc_friendly.go
rpc_friendly_test.go
severity_string.go
simple_warning.go
source_range.go
sourceless.go tfdiags: Simple helper for creating "sourceless" diagnostics 2018-10-16 18:24:10 -07:00