fn handle_assertion_result<ERR>(
result: Result<Vec<u8>, ERR>,
ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
executor: &mut dyn CheatcodesExecutor,
error_formatter: impl Fn(&ERR) -> String,
error_msg: Option<&str>,
format_error: bool,
) -> Result