Skip to main content

humanize_anyhow

Function humanize_anyhow 

Source
pub fn humanize_anyhow(err: &Error, provider_label: &str, model: &str) -> String
Expand description

Best-effort translation of any anyhow::Error into French.

Walks the error chain looking for known patterns (HTTP status codes, connection errors, etc.). Falls back to the raw error message when no pattern matches.