exitfailure - convienent newtype wrapper for failure::Error
exitfailure
provides a newtype wrapper around failure::Error
that will print a formatted list of error causes in it's Debug
trait implementation.
It is intended to be used with rust 1.26 and above's "? in main()" feature (see the tracking issue here).
Example:
extern crate failure;
extern crate exitfailure;
use ResultExt;
use ExitFailure;
This will print, when executed:
Error: this is some context
caused by: root cause failure