Skip to main content

errors_to_anyhow

Function errors_to_anyhow 

Source
pub fn errors_to_anyhow(errors: Vec<AnalysisError>) -> Error
Expand description

Convert a list of AnalysisErrors to an anyhow::Error with formatted message.

This is useful when you need to convert accumulated validation errors back to anyhow for backwards compatibility with existing code.