diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/zclconf/go-cty/cty/convert/public.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/zclconf/go-cty/cty/convert/public.go')
-rw-r--r-- | vendor/github.com/zclconf/go-cty/cty/convert/public.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/zclconf/go-cty/cty/convert/public.go b/vendor/github.com/zclconf/go-cty/cty/convert/public.go index 55f44ae..af19bdc 100644 --- a/vendor/github.com/zclconf/go-cty/cty/convert/public.go +++ b/vendor/github.com/zclconf/go-cty/cty/convert/public.go | |||
@@ -1,7 +1,7 @@ | |||
1 | package convert | 1 | package convert |
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "fmt" | 4 | "errors" |
5 | 5 | ||
6 | "github.com/zclconf/go-cty/cty" | 6 | "github.com/zclconf/go-cty/cty" |
7 | ) | 7 | ) |
@@ -46,7 +46,7 @@ func Convert(in cty.Value, want cty.Type) (cty.Value, error) { | |||
46 | 46 | ||
47 | conv := GetConversionUnsafe(in.Type(), want) | 47 | conv := GetConversionUnsafe(in.Type(), want) |
48 | if conv == nil { | 48 | if conv == nil { |
49 | return cty.NilVal, fmt.Errorf("incorrect type; %s required", want.FriendlyName()) | 49 | return cty.NilVal, errors.New(MismatchMessage(in.Type(), want)) |
50 | } | 50 | } |
51 | return conv(in) | 51 | return conv(in) |
52 | } | 52 | } |