Skip to content

Commit

Permalink
tests: add more error detail to stats get_field_value test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Dec 13, 2024
1 parent 0f2537b commit cc76270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ fn get_field_value(

let mut rows: Vec<Vec<String>> = wrk.read_stdout(cmd);
if rows.is_empty() {
return Err("Empty stats!".to_string());
return Err(format!("Empty stats for command '{cmd:?}'."));
}
let headers = rows.remove(0);
let mut sequence: Vec<&str> = vec![];
Expand Down

0 comments on commit cc76270

Please sign in to comment.