Skip to content

Commit

Permalink
Print stderr if pfctl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe authored and dlon committed Oct 1, 2024
1 parent 8230e87 commit d5f127e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/helper/pfcli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pub fn is_enabled() -> bool {
} else if str.starts_with("Status: Disabled") {
false
} else {
panic!("Invalid response.");
let stderr = str_from_stdout(&output.stderr);
panic!("Invalid output from pfctl ({}), stdout:\n{str}\nstderr:\n{stderr}", output.status);
}
}

Expand Down

0 comments on commit d5f127e

Please sign in to comment.