Skip to main content
← OpenMECP Documentation

create_user_friendly_tail_error

Function create_user_friendly_tail_error 

Source
fn create_user_friendly_tail_error(
    error_details: &str,
    section_name: &str,
    content: &str,
) -> String
Expand description

Creates a user-friendly error message for tail section validation failures.

This function takes technical validation errors and converts them into clear, actionable error messages that help users understand and fix their input file formatting issues.

§Arguments

  • error_details - The technical error details from validation
  • section_name - The name of the section where the error occurred
  • content - The problematic content for generating suggestions

§Returns

A formatted error message with context and suggestions