Function stable_eyre::install[][src]

pub fn install() -> Result<()>

Install the default error report hook provided by stable-eyre

Details

This function must be called to enable the customization of eyre::Report provided by stable-eyre. This function should be called early, ideally before any errors could be encountered.

Only the first install will succeed. Calling this function after another report handler has been installed will cause an error. Note: This function must be called before any eyre::Reports are constructed to prevent the default handler from being installed.