Function from_file

Source
pub fn from_file<M, P>(
    message: M,
    path: P,
    position: Position,
) -> Result<Error<String>>
where P: AsRef<Path>, M: AsRef<str>,
Expand description

Creates an Error with a message and path to source file a along with the relative position of the error

Positions should be 1-based to align with what people see in their source file editors