From ab7501be34032fb9e5c48726a68ae90a917af9eb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 4 Mar 2026 08:26:56 +0800 Subject: *: Lint --- reachability/errors.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'reachability/errors.go') 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) } -- cgit v1.3.1-10-gc9f91