[][src]Function inkling::error::parse::print_read_error

pub fn print_read_error(error: &ReadError) -> Result<String, Error>

Get a string containing all errors encountered while reading a story.

The errors are printed along with information about the line they were found in. Note that this may not print all errors that were found. Line parsing stops after the first error in every line, so lines containing more than one error will only have the first show up in this list.

Furthermore, since parsing and validation is done separately, this function will only print errors found in either step, not both. A file that could not be parsed may have additional problems that will be discovered during the validation step.