aya: netlink: improve error messages

pull/1/head
Alessandro Decina 3 years ago
parent 8f55cd728c
commit dc4e020f29

@ -194,10 +194,7 @@ impl NetlinkSocket {
// this is an ACK // this is an ACK
continue; continue;
} }
return Err(io::Error::new( return Err(io::Error::from_raw_os_error(-err.error));
io::ErrorKind::Other,
format!("netlink error: {}", err.error),
));
} }
NLMSG_DONE => break, NLMSG_DONE => break,
_ => {} _ => {}

Loading…
Cancel
Save