Skip to main content

format_context_error

Function format_context_error 

Source
pub fn format_context_error(context: &str, err: &BondError) -> String
Expand description

Formats an error message with additional context for display to the user, including a colored prefix based on the error kind. This is useful for providing more information about the error, such as where it occurred or what operation was being attempted when the error happened.