Make log_err directly return LoggedResult

This commit is contained in:
topjohnwu
2025-08-21 21:05:35 -07:00
committed by John Wu
parent 5caf28d27c
commit 36d33c7a85
7 changed files with 41 additions and 34 deletions

View File

@@ -363,7 +363,7 @@ pub extern "C" fn main(argc: i32, argv: *const *const c_char, _envp: *const *con
ref args,
}) => {
if args.len() > 2 {
Err(log_err!("Too many arguments"))?;
log_err!("Too many arguments")?;
}
extract_boot_from_payload(
payload,
@@ -382,7 +382,7 @@ pub extern "C" fn main(argc: i32, argv: *const *const c_char, _envp: *const *con
Utf8CStr::from_string(src),
Utf8CStr::from_string(dest),
) {
Err(log_err!("Failed to patch"))?;
log_err!("Failed to patch")?;
}
}
Action::Cpio(Cpio {