Function trustblock_cli::error_handler::install
source · pub fn install() -> Result<()>Expand description
Installs the Trustblock eyre hook as the global error report hook.
Details
By default a simple user-centric handler is installed, unless
TRUSTBLOCK_DEBUG is set in the environment, in which case a more
verbose debug-centric handler is installed.
Panics are always caught by the more debug-centric handler.