Skip to content

Commit

Permalink
chore(host_metrics): include error source in snafu display msg
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
  • Loading branch information
aryan9600 committed Jan 10, 2025
1 parent 114e3e0 commit 3dd11e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sources/host_metrics/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ impl HostMetrics {

#[derive(Debug, Snafu)]
enum TcpError {
#[snafu(display("Could not open new netlink socket"))]
#[snafu(display("Could not open new netlink socket: {}", source))]
NetlinkSocket { source: io::Error },
#[snafu(display("Could not send netlink message"))]
#[snafu(display("Could not send netlink message: {}", source))]
NetlinkSend { source: io::Error },
#[snafu(display("Could not parse netlink response"))]
#[snafu(display("Could not parse netlink response: {}", source))]
NetlinkParse {
source: netlink_packet_utils::DecodeError,
},
Expand Down

0 comments on commit 3dd11e6

Please sign in to comment.