Skip to main content

map_api_error

Function map_api_error 

Source
pub async fn map_api_error(err: Error<()>) -> Error
Expand description

Translate a progenitor api::Error<()> into a typed Error.

Async because the UnexpectedResponse path has to consume the response body to extract TaskFast’s {error, message} envelope.