lerror 0.1.1

A library for creating error types reporting file name, line and column instead of backtrace.
Documentation
use lerror::{bail, Context, ContextExt, Result};

#[test]
fn a() -> Result<()> {
    b().c()?;
    bail!("permission denied for accessing {}", "resource");
}

fn b() -> Result<()> {
    c().context("File not found")?;
    bail!("File not found");
}

fn c() -> Result<()> {
    bail!("Image not found");
}

#[test]
fn test_io_error() -> Result<()> {
    let err: Result<(), std::io::Error> = Ok(());
    let _ = err?;
    Ok(())
}