Crate exitfailure[][src]

A simple newtype wrapper around failure::Error

The primary items exported by this library are:

  • ExitFailure: a wrapper around failure::Error to allow ? printing from main present a nicer error message

Basically, ExitFailure should only ever be used in the return type for main() -> Result<(), exitfailure::ExitFailure>

Will also include the backtrace as prepared by the failure::Error crate, if the environment variable RUST_BACKTRACE=1 is set.

Structs

ExitFailure

The newtype wrapper around failure::Error