diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go b/vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go index fb3ac98..b0f1ecd 100644 --- a/vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go +++ b/vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go | |||
@@ -20,6 +20,11 @@ func (e simpleWarning) Description() Description { | |||
20 | } | 20 | } |
21 | 21 | ||
22 | func (e simpleWarning) Source() Source { | 22 | func (e simpleWarning) Source() Source { |
23 | // No source information available for a native error | 23 | // No source information available for a simple warning |
24 | return Source{} | 24 | return Source{} |
25 | } | 25 | } |
26 | |||
27 | func (e simpleWarning) FromExpr() *FromExpr { | ||
28 | // Simple warnings are not expression-related | ||
29 | return nil | ||
30 | } | ||