cargo_audit::error

Function display_err_with_source

Source
pub fn display_err_with_source<E: ErrorTrait>(error: &E) -> String
Expand description

Displays the error and also follows the chain of the .source fields, printing any errors that caused the top-level error.

This is required to properly present some gix errors to the user: https://github.com/rustsec/rustsec/issues/1029#issuecomment-1777487808