[][src]Function source_error::from_file

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

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