Skip to content

Commit a82c454

Browse files
author
Sebastian Holmin
committed
Add stderr to ifconfig error message
1 parent d1c97f9 commit a82c454

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test-manager/src/tests/tunnel_state.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ fn set_bridge_interface_mtu(
4646
let output = cmd.output().context("Failed to execute ifconfig")?;
4747
if !output.status.success() {
4848
bail!(
49-
"ifconfig failed with status: {}",
50-
output.status.code().unwrap()
49+
"ifconfig failed with status code {}: {}",
50+
output.status.code().unwrap(),
51+
String::from_utf8(output.stderr).expect("Parse stderr as utf-8"),
5152
);
5253
}
5354
Ok(())

0 commit comments

Comments
 (0)