Function octocrab::map_github_error

source ·
pub async fn map_github_error(
    response: Response<BoxBody<Bytes, Error>>
) -> Result<Response<BoxBody<Bytes, Error>>>
Expand description

Maps a GitHub error response into and Err() variant if the status is not a success.