aboutsummaryrefslogtreecommitdiff
path: root/reachability/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'reachability/errors.go')
-rw-r--r--reachability/errors.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/reachability/errors.go b/reachability/errors.go
index e52bf0a4..7d0d9a18 100644
--- a/reachability/errors.go
+++ b/reachability/errors.go
@@ -29,9 +29,11 @@ func (e *ErrObjectType) Error() string {
if !gotOK {
gotName = fmt.Sprintf("type(%d)", e.Got)
}
+
wantName, wantOK := objecttype.Name(e.Want)
if !wantOK {
wantName = fmt.Sprintf("type(%d)", e.Want)
}
+
return fmt.Sprintf("reachability: object %s has type %s, want %s", e.OID, gotName, wantName)
}