fn truncate(text: &str, limit: usize) -> String
A bounded prefix of a provider error body, cut on a char boundary.