Skip to main content

format_error_details

Function format_error_details 

Source
pub fn format_error_details<S: AsRef<str>>(lines: &[S], limit: usize) -> String
Expand 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.