mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 17:56:34 +00:00
fix(os-update): missing format arg in sha256 error message
This commit is contained in:
parent
595521db88
commit
46fcbe5197
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ pub fn apply(server: &str, key: &str, info: &UpdateInfo) -> Result<(), String> {
|
||||||
let got_sha = hex_lower(&digest);
|
let got_sha = hex_lower(&digest);
|
||||||
if got_sha != info.sha256 {
|
if got_sha != info.sha256 {
|
||||||
let _ = fs::remove_file(&bundle_path);
|
let _ = fs::remove_file(&bundle_path);
|
||||||
return Err(format!("sha256 mismatch: expected {}, got {got_sha}"));
|
return Err(format!("sha256 mismatch: expected {}, got {got_sha}", info.sha256));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Hand off to rauc. `rauc install` blocks until the bundle is fully
|
// 4. Hand off to rauc. `rauc install` blocks until the bundle is fully
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue