aboutsummaryrefslogtreecommitdiff
path: root/errors/type.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors/type.go')
-rw-r--r--errors/type.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/errors/type.go b/errors/type.go
index 19bdf3cd..bf3ba110 100644
--- a/errors/type.go
+++ b/errors/type.go
@@ -17,12 +17,12 @@ type ObjectTypeError struct {
// Error implements error.
func (e *ObjectTypeError) Error() string {
- gotName, gotOK := objecttype.Name(e.Got)
+ gotName, gotOK := e.Got.Name()
if !gotOK {
gotName = fmt.Sprintf("type(%d)", e.Got)
}
- wantName, wantOK := objecttype.Name(e.Want)
+ wantName, wantOK := e.Want.Name()
if !wantOK {
wantName = fmt.Sprintf("type(%d)", e.Want)
}