diff options
Diffstat (limited to 'vendor/github.com/zclconf/go-cty/cty/gob.go')
-rw-r--r-- | vendor/github.com/zclconf/go-cty/cty/gob.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/zclconf/go-cty/cty/gob.go b/vendor/github.com/zclconf/go-cty/cty/gob.go index 3d73199..a77dace 100644 --- a/vendor/github.com/zclconf/go-cty/cty/gob.go +++ b/vendor/github.com/zclconf/go-cty/cty/gob.go | |||
@@ -103,11 +103,11 @@ func (t *Type) GobDecode(buf []byte) error { | |||
103 | // Capsule types cannot currently be gob-encoded, because they rely on pointer | 103 | // Capsule types cannot currently be gob-encoded, because they rely on pointer |
104 | // equality and we have no way to recover the original pointer on decode. | 104 | // equality and we have no way to recover the original pointer on decode. |
105 | func (t *capsuleType) GobEncode() ([]byte, error) { | 105 | func (t *capsuleType) GobEncode() ([]byte, error) { |
106 | return nil, fmt.Errorf("cannot gob-encode capsule type %q", t.FriendlyName()) | 106 | return nil, fmt.Errorf("cannot gob-encode capsule type %q", t.FriendlyName(friendlyTypeName)) |
107 | } | 107 | } |
108 | 108 | ||
109 | func (t *capsuleType) GobDecode() ([]byte, error) { | 109 | func (t *capsuleType) GobDecode() ([]byte, error) { |
110 | return nil, fmt.Errorf("cannot gob-decode capsule type %q", t.FriendlyName()) | 110 | return nil, fmt.Errorf("cannot gob-decode capsule type %q", t.FriendlyName(friendlyTypeName)) |
111 | } | 111 | } |
112 | 112 | ||
113 | type gobValue struct { | 113 | type gobValue struct { |