pub fn format_error_details<S: AsRef<str>>(lines: &[S], limit: usize) -> StringExpand description
Pick the interesting lines of a long output for an error message.
Fewer than limit lines are returned as-is; otherwise lines mentioning
fail/error/not ok/exception are kept (all lines when none match),
truncated to limit entries with a trailing ... marker.