Lines Matching refs:Err
69 Err(error) if error.kind() == ErrorKind::NotFound => return Ok(false), in get_debug_policy_bool()
70 Err(error) => Err(error).with_context(|| format!("Failed to read {path:?}"))?, in get_debug_policy_bool()
78 value => Err(anyhow!("Invalid value {value} in {path:?}")), in get_debug_policy_bool()
88 Err(error) if error != FdtError::NotFound => { in get_fdt_prop_bool()
89 Err(Error::msg(error)).with_context(|| format!("Failed to get node {node_path:?}"))? in get_fdt_prop_bool()
97 Ok(Some(_)) => Err(anyhow!("Invalid prop value {prop_name:?} in node {node_path:?}")), in get_fdt_prop_bool()
98 Err(error) if error != FdtError::NotFound => { in get_fdt_prop_bool()
99 Err(Error::msg(error)).with_context(|| format!("Failed to get prop {prop_name:?}")) in get_fdt_prop_bool()
114 Err(error) if error.kind() == ErrorKind::NotFound => Default::default(), in from_overlay_onto_new_fdt()
115 Err(error) => { in from_overlay_onto_new_fdt()
116 Err(error).with_context(|| format!("Failed to read {overlay_file_path:?}"))? in from_overlay_onto_new_fdt()
176 Err(err) => warn!("Failed to load custom debug policy overlay {path}: {err:?}"), in new()
185 Err(err) => warn!("Failed to load debug policy from host OS: {err:?}"), in new()