Crate try_exit[][src]

Dependency free, simple error handling for small programs

Functions

try

Attempts to unwrap a Result. If it's an Err, exit program with given error message.

try_opt

Attempts to unwrap an Option. If it's a None, exit program with given error message.