diff options
| author | 2026-03-04 08:26:56 +0800 | |
|---|---|---|
| committer | 2026-03-04 08:59:53 +0800 | |
| commit | ab7501be34032fb9e5c48726a68ae90a917af9eb (patch) | |
| tree | 20d005647569befea8133e953c3270e8fd2a2a5b /reachability/errors.go | |
| parent | *: gofumpt (diff) | |
| signature | No signature | |
*: Lint
Diffstat (limited to 'reachability/errors.go')
| -rw-r--r-- | reachability/errors.go | 2 |
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) } |
