pub fn format_items_with_cap<T: Debug>(items: &[T]) -> String
Format a list of items with a cap on display count for error messages