Function expry::expry_compile_error_format
source · [−]pub fn expry_compile_error_format(
expr: &str,
e: &CompileError<'_>,
extra_line_no: u32
) -> (u32, String)
Expand description
Formats errors from compilation with a nice layout and underlines on the source lines, so that users can easily understand what to do. Returns the line number of the main error, and a string that can be displayed to the user.