Crate exitfailure[][src]

Some newtype wrappers to help with using ? in main()

The primary items exported by this library are:

  • ExitFailure: a wrapper around failure::Error to allow ? printing from main to present a nicer error message, including any available context and backtrace.

  • ExitDisplay<E>: a wrapper around E: std::fmt::Display to allow the error message from main to use Display and not Debug

Basically, these types should only ever be used in the return type for main()

Structs

ExitDisplay

A newtype wrapper around E: std::fmt::Display

ExitFailure

The newtype wrapper around failure::Error