Function spirit::utils::log_errors

source ·
pub fn log_errors<R, F: FnOnce() -> Result<R, Error>>(f: F) -> Result<R, Error>
Expand description

A wrapper around a fallible function that logs any returned errors, with all the causes and optionally the backtrace.