diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/tfdiags/error.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/tfdiags/error.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/terraform/tfdiags/error.go b/vendor/github.com/hashicorp/terraform/tfdiags/error.go index 35edc30..13f7a71 100644 --- a/vendor/github.com/hashicorp/terraform/tfdiags/error.go +++ b/vendor/github.com/hashicorp/terraform/tfdiags/error.go | |||
@@ -13,7 +13,7 @@ func (e nativeError) Severity() Severity { | |||
13 | 13 | ||
14 | func (e nativeError) Description() Description { | 14 | func (e nativeError) Description() Description { |
15 | return Description{ | 15 | return Description{ |
16 | Summary: e.err.Error(), | 16 | Summary: FormatError(e.err), |
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
@@ -21,3 +21,8 @@ func (e nativeError) Source() Source { | |||
21 | // No source information available for a native error | 21 | // No source information available for a native error |
22 | return Source{} | 22 | return Source{} |
23 | } | 23 | } |
24 | |||
25 | func (e nativeError) FromExpr() *FromExpr { | ||
26 | // Native errors are not expression-related | ||
27 | return nil | ||
28 | } | ||