Skip to content

Commit 2dcfe8b

Browse files
Propagate the merge failure code to SnapshotMergeStats. am: 6ac3d47 am: 4f94f1c am: 2ea8449
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1675999 Change-Id: Iafea2b231da77bfb9297a2499f7249f102b1a035
2 parents 3e6c001 + 2ea8449 commit 2dcfe8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aosp/cleanup_previous_update_action.cc

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ void CleanupPreviousUpdateAction::WaitForMergeOrSchedule() {
324324

325325
case UpdateState::MergeFailed: {
326326
LOG(ERROR) << "Merge failed. Device may be corrupted.";
327+
merge_stats_->set_merge_failure_code(snapshot_->ReadMergeFailureCode());
327328
processor_->ActionComplete(this, ErrorCode::kDeviceCorrupted);
328329
return;
329330
}

0 commit comments

Comments
 (0)