tracked

Crates.iotracked
lib.rstracked
version0.5.4
sourcesrc
created_at2022-01-28 16:43:30.431686
updated_at2023-04-08 08:22:20.475677
descriptionA stringly-typed Error that includes `#[track_caller]` information.
homepage
repositoryhttps://github.com/trevyn/tracked
max_upload_size
id523156
size5,990
(trevyn)

documentation

https://docs.rs/tracked

README

tracked

github crates.io docs.rs

A stringly-typed Error that includes #[track_caller] information.

Points you to the location in your code that errored, without the panic!.

Also lets you try an Option or a bool into a Result.

use tracked::tracked;

fn f() -> Option<()> {
    None
}

#[tracked]
fn main() -> Result<(), tracked::StringError> {
    true?;
    f()?;
    Ok(())
}
Error: NoneError in main at src/main.rs:10:8
Commit count: 47

cargo fmt