Skip to content
/ tracked Public

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

Notifications You must be signed in to change notification settings

trevyn/tracked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Languages