mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-15 23:06:38 +00:00
[client] Improve error reporting for route socket operations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user