pub fn write_error_report(errors: &[RichError], source_name: &str) -> String
Writes a batch of errors to a formatted report string.