Skip to main content

format_validation_errors

Function format_validation_errors 

Source
pub fn format_validation_errors(errors: &[ValidationError]) -> String
Expand description

Formats validation errors for a retry prompt.

One line per error, code first so the model can see the kind at a glance, then the locator, then the sentence explaining the fix.