Function drone::utils::run_wrapper [−][src]
pub fn run_wrapper(color: Color, f: impl FnOnce() -> Result<()>)
Runs the application code inside closure f
, prints an error using color
preference if there is any, and sets the exit code.