[client] Improve error reporting for route socket operations

This commit is contained in:
Zoltán Papp
2026-04-09 17:30:58 +02:00
parent 7a1c2f08b8
commit 8f6e916517

View File

@@ -241,7 +241,7 @@ func (r *SysOps) parseRouteResponse(buf []byte) error {
rtMsg := (*unix.RtMsghdr)(unsafe.Pointer(&buf[0]))
if rtMsg.Errno != 0 {
return fmt.Errorf("parse: %d", rtMsg.Errno)
return fmt.Errorf("route socket: %w", syscall.Errno(rtMsg.Errno))
}
return nil