aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/zclconf/go-cty/cty/convert/public.go
diff options
context:
space:
mode:
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.go4
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 @@
1package convert 1package convert
2 2
3import ( 3import (
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}