Skip to main content

map_raw

Function map_raw 

Source
pub fn map_raw<E: Debug>(e: Error<E>) -> Error
Expand description

Map a raw generated-client error into an anyhow error with a readable message. The raw Error<E> renders the server’s error body (status, headers, decoded value) via its Display impl, which holds for any E: Debug — true of the generated types::Error body.