source-error 0.1.0

A magical type for displaying source file errors
Documentation
1
2
3
4
5
6
7
8
9
10
use source_error::{from_file, Position};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    println!(
        "{}",
        from_file("whoopsie!", "tests/source.json", Position::new(3, 4))?
    );
    Ok(())
}